home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / id-utils.2 / id-utils / id-utils-3.2 / configure < prev    next >
Encoding:
Text File  |  1996-08-07  |  114.2 KB  |  4,249 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.10 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-maintainer-mode enable make rules and dependencies not useful
  16.                           (and sometimes confusing) to the casual installer"
  17. ac_help="$ac_help
  18.   --with-regex            use older regex in lieu of GNU rx for matching"
  19. ac_help="$ac_help
  20.   --disable-nls           do not use Native Language Support"
  21. ac_help="$ac_help
  22.   --with-included-gettext use the GNU gettext library included here"
  23. ac_help="$ac_help
  24.   --with-catgets          use catgets functions if available"
  25.  
  26. # Initialize some variables set by options.
  27. # The variables have the same names as the options, with
  28. # dashes changed to underlines.
  29. build=NONE
  30. cache_file=./config.cache
  31. exec_prefix=NONE
  32. host=NONE
  33. no_create=
  34. nonopt=NONE
  35. no_recursion=
  36. prefix=NONE
  37. program_prefix=NONE
  38. program_suffix=NONE
  39. program_transform_name=s,x,x,
  40. silent=
  41. site=
  42. srcdir=
  43. target=NONE
  44. verbose=
  45. x_includes=NONE
  46. x_libraries=NONE
  47. bindir='${exec_prefix}/bin'
  48. sbindir='${exec_prefix}/sbin'
  49. libexecdir='${exec_prefix}/libexec'
  50. datadir='${prefix}/share'
  51. sysconfdir='${prefix}/etc'
  52. sharedstatedir='${prefix}/com'
  53. localstatedir='${prefix}/var'
  54. libdir='${exec_prefix}/lib'
  55. includedir='${prefix}/include'
  56. oldincludedir='/usr/include'
  57. infodir='${prefix}/info'
  58. mandir='${prefix}/man'
  59.  
  60. # Initialize some other variables.
  61. subdirs=
  62. MFLAGS= MAKEFLAGS=
  63.  
  64. ac_prev=
  65. for ac_option
  66. do
  67.  
  68.   # If the previous option needs an argument, assign it.
  69.   if test -n "$ac_prev"; then
  70.     eval "$ac_prev=\$ac_option"
  71.     ac_prev=
  72.     continue
  73.   fi
  74.  
  75.   case "$ac_option" in
  76.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  77.   *) ac_optarg= ;;
  78.   esac
  79.  
  80.   # Accept the important Cygnus configure options, so we can diagnose typos.
  81.  
  82.   case "$ac_option" in
  83.  
  84.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  85.     ac_prev=bindir ;;
  86.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  87.     bindir="$ac_optarg" ;;
  88.  
  89.   -build | --build | --buil | --bui | --bu)
  90.     ac_prev=build ;;
  91.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  92.     build="$ac_optarg" ;;
  93.  
  94.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  95.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  96.     ac_prev=cache_file ;;
  97.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  98.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  99.     cache_file="$ac_optarg" ;;
  100.  
  101.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  102.     ac_prev=datadir ;;
  103.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  104.   | --da=*)
  105.     datadir="$ac_optarg" ;;
  106.  
  107.   -disable-* | --disable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     eval "enable_${ac_feature}=no" ;;
  115.  
  116.   -enable-* | --enable-*)
  117.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  118.     # Reject names that are not valid shell variable names.
  119.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  120.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  121.     fi
  122.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  123.     case "$ac_option" in
  124.       *=*) ;;
  125.       *) ac_optarg=yes ;;
  126.     esac
  127.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  128.  
  129.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  130.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  131.   | --exec | --exe | --ex)
  132.     ac_prev=exec_prefix ;;
  133.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  134.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  135.   | --exec=* | --exe=* | --ex=*)
  136.     exec_prefix="$ac_optarg" ;;
  137.  
  138.   -gas | --gas | --ga | --g)
  139.     # Obsolete; use --with-gas.
  140.     with_gas=yes ;;
  141.  
  142.   -help | --help | --hel | --he)
  143.     # Omit some internal or obsolete options to make the list less imposing.
  144.     # This message is too long to be a string in the A/UX 3.1 sh.
  145.     cat << EOF
  146. Usage: configure [options] [host]
  147. Options: [defaults in brackets after descriptions]
  148. Configuration:
  149.   --cache-file=FILE       cache test results in FILE
  150.   --help                  print this message
  151.   --no-create             do not create output files
  152.   --quiet, --silent       do not print \`checking...' messages
  153.   --version               print the version of autoconf that created configure
  154. Directory and file names:
  155.   --prefix=PREFIX         install architecture-independent files in PREFIX
  156.                           [$ac_default_prefix]
  157.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  158.                           [same as prefix]
  159.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  160.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  161.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  162.   --datadir=DIR           read-only architecture-independent data in DIR
  163.                           [PREFIX/share]
  164.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  165.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  166.                           [PREFIX/com]
  167.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  168.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  169.   --includedir=DIR        C header files in DIR [PREFIX/include]
  170.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  171.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  172.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  173.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  174.   --program-prefix=PREFIX prepend PREFIX to installed program names
  175.   --program-suffix=SUFFIX append SUFFIX to installed program names
  176.   --program-transform-name=PROGRAM
  177.                           run sed PROGRAM on installed program names
  178. EOF
  179.     cat << EOF
  180. Host type:
  181.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  182.   --host=HOST             configure for HOST [guessed]
  183.   --target=TARGET         configure for TARGET [TARGET=HOST]
  184. Features and packages:
  185.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  186.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  187.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  188.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  189.   --x-includes=DIR        X include files are in DIR
  190.   --x-libraries=DIR       X library files are in DIR
  191. EOF
  192.     if test -n "$ac_help"; then
  193.       echo "--enable and --with options recognized:$ac_help"
  194.     fi
  195.     exit 0 ;;
  196.  
  197.   -host | --host | --hos | --ho)
  198.     ac_prev=host ;;
  199.   -host=* | --host=* | --hos=* | --ho=*)
  200.     host="$ac_optarg" ;;
  201.  
  202.   -includedir | --includedir | --includedi | --included | --include \
  203.   | --includ | --inclu | --incl | --inc)
  204.     ac_prev=includedir ;;
  205.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  206.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  207.     includedir="$ac_optarg" ;;
  208.  
  209.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  210.     ac_prev=infodir ;;
  211.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  212.     infodir="$ac_optarg" ;;
  213.  
  214.   -libdir | --libdir | --libdi | --libd)
  215.     ac_prev=libdir ;;
  216.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  217.     libdir="$ac_optarg" ;;
  218.  
  219.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  220.   | --libexe | --libex | --libe)
  221.     ac_prev=libexecdir ;;
  222.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  223.   | --libexe=* | --libex=* | --libe=*)
  224.     libexecdir="$ac_optarg" ;;
  225.  
  226.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  227.   | --localstate | --localstat | --localsta | --localst \
  228.   | --locals | --local | --loca | --loc | --lo)
  229.     ac_prev=localstatedir ;;
  230.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  231.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  232.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  233.     localstatedir="$ac_optarg" ;;
  234.  
  235.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  236.     ac_prev=mandir ;;
  237.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  238.     mandir="$ac_optarg" ;;
  239.  
  240.   -nfp | --nfp | --nf)
  241.     # Obsolete; use --without-fp.
  242.     with_fp=no ;;
  243.  
  244.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  245.   | --no-cr | --no-c)
  246.     no_create=yes ;;
  247.  
  248.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  249.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  250.     no_recursion=yes ;;
  251.  
  252.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  253.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  254.   | --oldin | --oldi | --old | --ol | --o)
  255.     ac_prev=oldincludedir ;;
  256.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  257.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  258.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  259.     oldincludedir="$ac_optarg" ;;
  260.  
  261.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  262.     ac_prev=prefix ;;
  263.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  264.     prefix="$ac_optarg" ;;
  265.  
  266.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  267.   | --program-pre | --program-pr | --program-p)
  268.     ac_prev=program_prefix ;;
  269.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  270.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  271.     program_prefix="$ac_optarg" ;;
  272.  
  273.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  274.   | --program-suf | --program-su | --program-s)
  275.     ac_prev=program_suffix ;;
  276.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  277.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  278.     program_suffix="$ac_optarg" ;;
  279.  
  280.   -program-transform-name | --program-transform-name \
  281.   | --program-transform-nam | --program-transform-na \
  282.   | --program-transform-n | --program-transform- \
  283.   | --program-transform | --program-transfor \
  284.   | --program-transfo | --program-transf \
  285.   | --program-trans | --program-tran \
  286.   | --progr-tra | --program-tr | --program-t)
  287.     ac_prev=program_transform_name ;;
  288.   -program-transform-name=* | --program-transform-name=* \
  289.   | --program-transform-nam=* | --program-transform-na=* \
  290.   | --program-transform-n=* | --program-transform-=* \
  291.   | --program-transform=* | --program-transfor=* \
  292.   | --program-transfo=* | --program-transf=* \
  293.   | --program-trans=* | --program-tran=* \
  294.   | --progr-tra=* | --program-tr=* | --program-t=*)
  295.     program_transform_name="$ac_optarg" ;;
  296.  
  297.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  298.   | -silent | --silent | --silen | --sile | --sil)
  299.     silent=yes ;;
  300.  
  301.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  302.     ac_prev=sbindir ;;
  303.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  304.   | --sbi=* | --sb=*)
  305.     sbindir="$ac_optarg" ;;
  306.  
  307.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  308.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  309.   | --sharedst | --shareds | --shared | --share | --shar \
  310.   | --sha | --sh)
  311.     ac_prev=sharedstatedir ;;
  312.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  313.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  314.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  315.   | --sha=* | --sh=*)
  316.     sharedstatedir="$ac_optarg" ;;
  317.  
  318.   -site | --site | --sit)
  319.     ac_prev=site ;;
  320.   -site=* | --site=* | --sit=*)
  321.     site="$ac_optarg" ;;
  322.  
  323.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  324.     ac_prev=srcdir ;;
  325.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  326.     srcdir="$ac_optarg" ;;
  327.  
  328.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  329.   | --syscon | --sysco | --sysc | --sys | --sy)
  330.     ac_prev=sysconfdir ;;
  331.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  332.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  333.     sysconfdir="$ac_optarg" ;;
  334.  
  335.   -target | --target | --targe | --targ | --tar | --ta | --t)
  336.     ac_prev=target ;;
  337.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  338.     target="$ac_optarg" ;;
  339.  
  340.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  341.     verbose=yes ;;
  342.  
  343.   -version | --version | --versio | --versi | --vers)
  344.     echo "configure generated by autoconf version 2.10"
  345.     exit 0 ;;
  346.  
  347.   -with-* | --with-*)
  348.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  349.     # Reject names that are not valid shell variable names.
  350.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  351.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  352.     fi
  353.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  354.     case "$ac_option" in
  355.       *=*) ;;
  356.       *) ac_optarg=yes ;;
  357.     esac
  358.     eval "with_${ac_package}='$ac_optarg'" ;;
  359.  
  360.   -without-* | --without-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     eval "with_${ac_package}=no" ;;
  368.  
  369.   --x)
  370.     # Obsolete; use --with-x.
  371.     with_x=yes ;;
  372.  
  373.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  374.   | --x-incl | --x-inc | --x-in | --x-i)
  375.     ac_prev=x_includes ;;
  376.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  377.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  378.     x_includes="$ac_optarg" ;;
  379.  
  380.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  381.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  382.     ac_prev=x_libraries ;;
  383.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  384.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  385.     x_libraries="$ac_optarg" ;;
  386.  
  387.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  388.     ;;
  389.  
  390.   *)
  391.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  392.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  393.     fi
  394.     if test "x$nonopt" != xNONE; then
  395.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  396.     fi
  397.     nonopt="$ac_option"
  398.     ;;
  399.  
  400.   esac
  401. done
  402.  
  403. if test -n "$ac_prev"; then
  404.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  405. fi
  406.  
  407. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  408.  
  409. # File descriptor usage:
  410. # 0 standard input
  411. # 1 file creation
  412. # 2 errors and warnings
  413. # 3 some systems may open it to /dev/tty
  414. # 4 used on the Kubota Titan
  415. # 6 checking for... messages and results
  416. # 5 compiler messages saved in config.log
  417. if test "$silent" = yes; then
  418.   exec 6>/dev/null
  419. else
  420.   exec 6>&1
  421. fi
  422. exec 5>./config.log
  423.  
  424. echo "\
  425. This file contains any messages produced by compilers while
  426. running configure, to aid debugging if configure makes a mistake.
  427. " 1>&5
  428.  
  429. # Strip out --no-create and --no-recursion so they do not pile up.
  430. # Also quote any args containing shell metacharacters.
  431. ac_configure_args=
  432. for ac_arg
  433. do
  434.   case "$ac_arg" in
  435.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  436.   | --no-cr | --no-c) ;;
  437.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  438.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  439.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  440.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  441.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  442.   esac
  443. done
  444.  
  445. # NLS nuisances.
  446. # Only set LANG and LC_ALL to C if already set.
  447. # These must not be set unconditionally because not all systems understand
  448. # e.g. LANG=C (notably SCO).
  449. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  450. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  451.  
  452. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  453. rm -rf conftest* confdefs.h
  454. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  455. echo > confdefs.h
  456.  
  457. # A filename unique to this package, relative to the directory that
  458. # configure is in, which we can look for to find out if srcdir is correct.
  459. ac_unique_file=src/mkid.c
  460.  
  461. # Find the source files, if location was not specified.
  462. if test -z "$srcdir"; then
  463.   ac_srcdir_defaulted=yes
  464.   # Try the directory containing this script, then its parent.
  465.   ac_prog=$0
  466.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  467.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  468.   srcdir=$ac_confdir
  469.   if test ! -r $srcdir/$ac_unique_file; then
  470.     srcdir=..
  471.   fi
  472. else
  473.   ac_srcdir_defaulted=no
  474. fi
  475. if test ! -r $srcdir/$ac_unique_file; then
  476.   if test "$ac_srcdir_defaulted" = yes; then
  477.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  478.   else
  479.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  480.   fi
  481. fi
  482. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  483.  
  484. # Prefer explicitly selected file to automatically selected ones.
  485. if test -z "$CONFIG_SITE"; then
  486.   if test "x$prefix" != xNONE; then
  487.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  488.   else
  489.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  490.   fi
  491. fi
  492. for ac_site_file in $CONFIG_SITE; do
  493.   if test -r "$ac_site_file"; then
  494.     echo "loading site script $ac_site_file"
  495.     . "$ac_site_file"
  496.   fi
  497. done
  498.  
  499. if test -r "$cache_file"; then
  500.   echo "loading cache $cache_file"
  501.   . $cache_file
  502. else
  503.   echo "creating cache $cache_file"
  504.   > $cache_file
  505. fi
  506.  
  507. ac_ext=c
  508. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  509. ac_cpp='$CPP $CPPFLAGS'
  510. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  511. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  512.  
  513. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  514.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  515.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  516.     ac_n= ac_c='
  517. ' ac_t='    '
  518.   else
  519.     ac_n=-n ac_c= ac_t=
  520.   fi
  521. else
  522.   ac_n= ac_c='\c' ac_t=
  523. fi
  524.  
  525.  
  526.  
  527.  
  528. if test "$program_transform_name" = s,x,x,; then
  529.   program_transform_name=
  530. else
  531.   # Double any \ or $.  echo might interpret backslashes.
  532.   cat <<\EOF_SED > conftestsed
  533. s,\\,\\\\,g; s,\$,$$,g
  534. EOF_SED
  535.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  536.   rm -f conftestsed
  537. fi
  538. test "$program_prefix" != NONE &&
  539.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  540. # Use a double $ so make ignores it.
  541. test "$program_suffix" != NONE &&
  542.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  543.  
  544. # sed with no file args requires a program.
  545. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  546.  
  547.  
  548. ##############################################################################
  549. ################ Identify Package ############################################
  550. ##############################################################################
  551.  
  552. PACKAGE=id-utils
  553. VERSION=3.2
  554. PACKAGE_VERSION="GNU $PACKAGE $VERSION"
  555. cat >> confdefs.h <<EOF
  556. #define PACKAGE "$PACKAGE"
  557. EOF
  558.  
  559. cat >> confdefs.h <<EOF
  560. #define VERSION "$VERSION"
  561. EOF
  562.  
  563. cat >> confdefs.h <<EOF
  564. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  565. EOF
  566.  
  567.  
  568.  
  569.  
  570.  
  571. ##############################################################################
  572. ################ Maintainer Stuff ############################################
  573. ##############################################################################
  574.  
  575. echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  576.     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  577. if test "${enable_maintainer_mode+set}" = set; then
  578.   enableval="$enable_maintainer_mode"
  579.   USE_MAINTAINER_MODE=$enableval
  580. else
  581.   USE_MAINTAINER_MODE=no
  582. fi
  583.  
  584.   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
  585.   if test $USE_MAINTAINER_MODE = yes; then
  586.     MAINT=
  587.   else
  588.     MAINT='#M#'
  589.   fi
  590.   
  591.  
  592.  
  593. ALL_LINGUAS="de fr"
  594.  
  595. case $VERSION in
  596. *[a-z]) README_ALPHA=README-alpha;;
  597. *)      README_ALPHA=;;
  598. esac
  599.  
  600.  
  601. ##############################################################################
  602. ################ Check for tools #############################################
  603. ##############################################################################
  604.  
  605. # Extract the first word of "gcc", so it can be a program name with args.
  606. set dummy gcc; ac_word=$2
  607. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  608. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  609.   echo $ac_n "(cached) $ac_c" 1>&6
  610. else
  611.   if test -n "$CC"; then
  612.   ac_cv_prog_CC="$CC" # Let the user override the test.
  613. else
  614.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  615.   for ac_dir in $PATH; do
  616.     test -z "$ac_dir" && ac_dir=.
  617.     if test -f $ac_dir/$ac_word; then
  618.       ac_cv_prog_CC="gcc"
  619.       break
  620.     fi
  621.   done
  622.   IFS="$ac_save_ifs"
  623. fi
  624. fi
  625. CC="$ac_cv_prog_CC"
  626. if test -n "$CC"; then
  627.   echo "$ac_t""$CC" 1>&6
  628. else
  629.   echo "$ac_t""no" 1>&6
  630. fi
  631.  
  632. if test -z "$CC"; then
  633.   # Extract the first word of "cc", so it can be a program name with args.
  634. set dummy cc; ac_word=$2
  635. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  636. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  637.   echo $ac_n "(cached) $ac_c" 1>&6
  638. else
  639.   if test -n "$CC"; then
  640.   ac_cv_prog_CC="$CC" # Let the user override the test.
  641. else
  642.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  643.   ac_prog_rejected=no
  644.   for ac_dir in $PATH; do
  645.     test -z "$ac_dir" && ac_dir=.
  646.     if test -f $ac_dir/$ac_word; then
  647.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  648.         ac_prog_rejected=yes
  649.     continue
  650.       fi
  651.       ac_cv_prog_CC="cc"
  652.       break
  653.     fi
  654.   done
  655.   IFS="$ac_save_ifs"
  656. if test $ac_prog_rejected = yes; then
  657.   # We found a bogon in the path, so make sure we never use it.
  658.   set dummy $ac_cv_prog_CC
  659.   shift
  660.   if test $# -gt 0; then
  661.     # We chose a different compiler from the bogus one.
  662.     # However, it has the same basename, so the bogon will be chosen
  663.     # first if we set CC to just the basename; use the full file name.
  664.     shift
  665.     set dummy "$ac_dir/$ac_word" "$@"
  666.     shift
  667.     ac_cv_prog_CC="$@"
  668.   fi
  669. fi
  670. fi
  671. fi
  672. CC="$ac_cv_prog_CC"
  673. if test -n "$CC"; then
  674.   echo "$ac_t""$CC" 1>&6
  675. else
  676.   echo "$ac_t""no" 1>&6
  677. fi
  678.  
  679.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  680. fi
  681.  
  682. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  683. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  684.   echo $ac_n "(cached) $ac_c" 1>&6
  685. else
  686.   cat > conftest.c <<EOF
  687. #ifdef __GNUC__
  688.   yes;
  689. #endif
  690. EOF
  691. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  692.   ac_cv_prog_gcc=yes
  693. else
  694.   ac_cv_prog_gcc=no
  695. fi
  696. fi
  697.  
  698. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  699. if test $ac_cv_prog_gcc = yes; then
  700.   GCC=yes
  701.   if test "${CFLAGS+set}" != set; then
  702.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  703. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  704.   echo $ac_n "(cached) $ac_c" 1>&6
  705. else
  706.   echo 'void f(){}' > conftest.c
  707. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  708.   ac_cv_prog_gcc_g=yes
  709. else
  710.   ac_cv_prog_gcc_g=no
  711. fi
  712. rm -f conftest*
  713.  
  714. fi
  715.  
  716. echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  717.     if test $ac_cv_prog_gcc_g = yes; then
  718.       CFLAGS="-g -O"
  719.     else
  720.       CFLAGS="-O"
  721.     fi
  722.   fi
  723. else
  724.   GCC=
  725.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  726. fi
  727.  
  728. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  729. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  730.   echo $ac_n "(cached) $ac_c" 1>&6
  731. else
  732.   rm -f conftestdata
  733. if ln -s X conftestdata 2>/dev/null
  734. then
  735.   rm -f conftestdata
  736.   ac_cv_prog_LN_S="ln -s"
  737. else
  738.   ac_cv_prog_LN_S=ln
  739. fi
  740. fi
  741. LN_S="$ac_cv_prog_LN_S"
  742. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  743.   echo "$ac_t""yes" 1>&6
  744. else
  745.   echo "$ac_t""no" 1>&6
  746. fi
  747.  
  748. ac_aux_dir=
  749. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  750.   if test -f $ac_dir/install-sh; then
  751.     ac_aux_dir=$ac_dir
  752.     ac_install_sh="$ac_aux_dir/install-sh -c"
  753.     break
  754.   elif test -f $ac_dir/install.sh; then
  755.     ac_aux_dir=$ac_dir
  756.     ac_install_sh="$ac_aux_dir/install.sh -c"
  757.     break
  758.   fi
  759. done
  760. if test -z "$ac_aux_dir"; then
  761.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  762. fi
  763. ac_config_guess=$ac_aux_dir/config.guess
  764. ac_config_sub=$ac_aux_dir/config.sub
  765. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  766.  
  767. # Find a good install program.  We prefer a C program (faster),
  768. # so one script is as good as another.  But avoid the broken or
  769. # incompatible versions:
  770. # SysV /etc/install, /usr/sbin/install
  771. # SunOS /usr/etc/install
  772. # IRIX /sbin/install
  773. # AIX /bin/install
  774. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  775. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  776. # ./install, which can be erroneously created by make from ./install.sh.
  777. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  778. if test -z "$INSTALL"; then
  779. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  780.   echo $ac_n "(cached) $ac_c" 1>&6
  781. else
  782.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  783.   for ac_dir in $PATH; do
  784.     # Account for people who put trailing slashes in PATH elements.
  785.     case "$ac_dir/" in
  786.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  787.     *)
  788.       # OSF1 and SCO ODT 3.0 have their own names for install.
  789.       for ac_prog in ginstall installbsd scoinst install; do
  790.         if test -f $ac_dir/$ac_prog; then
  791.       if test $ac_prog = install &&
  792.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  793.         # AIX install.  It has an incompatible calling convention.
  794.         # OSF/1 installbsd also uses dspmsg, but is usable.
  795.         :
  796.       else
  797.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  798.         break 2
  799.       fi
  800.     fi
  801.       done
  802.       ;;
  803.     esac
  804.   done
  805.   IFS="$ac_save_ifs"
  806.  
  807. fi
  808.   if test "${ac_cv_path_install+set}" = set; then
  809.     INSTALL="$ac_cv_path_install"
  810.   else
  811.     # As a last resort, use the slow shell script.  We don't cache a
  812.     # path for INSTALL within a source directory, because that will
  813.     # break other packages using the cache if that directory is
  814.     # removed, or if the path is relative.
  815.     INSTALL="$ac_install_sh"
  816.   fi
  817. fi
  818. echo "$ac_t""$INSTALL" 1>&6
  819.  
  820. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  821. # It thinks the first close brace ends the variable substitution.
  822. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  823.  
  824. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  825.  
  826.  
  827. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
  828.  
  829. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  830. set dummy ${MAKE-make}; ac_make=$2
  831. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  832.   echo $ac_n "(cached) $ac_c" 1>&6
  833. else
  834.   cat > conftestmake <<\EOF
  835. all:
  836.     @echo 'ac_maketemp="${MAKE}"'
  837. EOF
  838. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  839. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  840. if test -n "$ac_maketemp"; then
  841.   eval ac_cv_prog_make_${ac_make}_set=yes
  842. else
  843.   eval ac_cv_prog_make_${ac_make}_set=no
  844. fi
  845. rm -f conftestmake
  846. fi
  847. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  848.   echo "$ac_t""yes" 1>&6
  849.   SET_MAKE=
  850. else
  851.   echo "$ac_t""no" 1>&6
  852.   SET_MAKE="MAKE=${MAKE-make}"
  853. fi
  854.  
  855. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  856. # On Suns, sometimes $CPP names a directory.
  857. if test -n "$CPP" && test -d "$CPP"; then
  858.   CPP=
  859. fi
  860. if test -z "$CPP"; then
  861. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  862.   echo $ac_n "(cached) $ac_c" 1>&6
  863. else
  864.     # This must be in double quotes, not single quotes, because CPP may get
  865.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  866.   CPP="${CC-cc} -E"
  867.   # On the NeXT, cc -E runs the code through the compiler's parser,
  868.   # not just through cpp.
  869.   cat > conftest.$ac_ext <<EOF
  870. #line 871 "configure"
  871. #include "confdefs.h"
  872. #include <assert.h>
  873. Syntax Error
  874. EOF
  875. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  876. { (eval echo configure:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  877. ac_err=`grep -v '^ *+' conftest.out`
  878. if test -z "$ac_err"; then
  879.   :
  880. else
  881.   echo "$ac_err" >&5
  882.   rm -rf conftest*
  883.   CPP="${CC-cc} -E -traditional-cpp"
  884.   cat > conftest.$ac_ext <<EOF
  885. #line 886 "configure"
  886. #include "confdefs.h"
  887. #include <assert.h>
  888. Syntax Error
  889. EOF
  890. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  891. { (eval echo configure:892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  892. ac_err=`grep -v '^ *+' conftest.out`
  893. if test -z "$ac_err"; then
  894.   :
  895. else
  896.   echo "$ac_err" >&5
  897.   rm -rf conftest*
  898.   CPP=/lib/cpp
  899. fi
  900. rm -f conftest*
  901. fi
  902. rm -f conftest*
  903.   ac_cv_prog_CPP="$CPP"
  904. fi
  905.   CPP="$ac_cv_prog_CPP"
  906. else
  907.   ac_cv_prog_CPP="$CPP"
  908. fi
  909. echo "$ac_t""$CPP" 1>&6
  910.  
  911. if test $ac_cv_prog_gcc = yes; then
  912.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  913. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  914.   echo $ac_n "(cached) $ac_c" 1>&6
  915. else
  916.     ac_pattern="Autoconf.*'x'"
  917.   cat > conftest.$ac_ext <<EOF
  918. #line 919 "configure"
  919. #include "confdefs.h"
  920. #include <sgtty.h>
  921. Autoconf TIOCGETP
  922. EOF
  923. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  924.   egrep "$ac_pattern" >/dev/null 2>&1; then
  925.   rm -rf conftest*
  926.   ac_cv_prog_gcc_traditional=yes
  927. else
  928.   rm -rf conftest*
  929.   ac_cv_prog_gcc_traditional=no
  930. fi
  931. rm -f conftest*
  932.  
  933.  
  934.   if test $ac_cv_prog_gcc_traditional = no; then
  935.     cat > conftest.$ac_ext <<EOF
  936. #line 937 "configure"
  937. #include "confdefs.h"
  938. #include <termio.h>
  939. Autoconf TCGETA
  940. EOF
  941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  942.   egrep "$ac_pattern" >/dev/null 2>&1; then
  943.   rm -rf conftest*
  944.   ac_cv_prog_gcc_traditional=yes
  945. fi
  946. rm -f conftest*
  947.  
  948.   fi
  949. fi
  950.  
  951. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  952.   if test $ac_cv_prog_gcc_traditional = yes; then
  953.     CC="$CC -traditional"
  954.   fi
  955. fi
  956.  
  957. # Extract the first word of "ranlib", so it can be a program name with args.
  958. set dummy ranlib; ac_word=$2
  959. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  960. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  961.   echo $ac_n "(cached) $ac_c" 1>&6
  962. else
  963.   if test -n "$RANLIB"; then
  964.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  965. else
  966.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  967.   for ac_dir in $PATH; do
  968.     test -z "$ac_dir" && ac_dir=.
  969.     if test -f $ac_dir/$ac_word; then
  970.       ac_cv_prog_RANLIB="ranlib"
  971.       break
  972.     fi
  973.   done
  974.   IFS="$ac_save_ifs"
  975.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  976. fi
  977. fi
  978. RANLIB="$ac_cv_prog_RANLIB"
  979. if test -n "$RANLIB"; then
  980.   echo "$ac_t""$RANLIB" 1>&6
  981. else
  982.   echo "$ac_t""no" 1>&6
  983. fi
  984.  
  985. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  986. cat > conftest.$ac_ext <<EOF
  987. #line 988 "configure"
  988. #include "confdefs.h"
  989. #ifdef _AIX
  990.   yes
  991. #endif
  992.  
  993. EOF
  994. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  995.   egrep "yes" >/dev/null 2>&1; then
  996.   rm -rf conftest*
  997.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  998. #define _ALL_SOURCE 1
  999. EOF
  1000.  
  1001. else
  1002.   rm -rf conftest*
  1003.   echo "$ac_t""no" 1>&6
  1004. fi
  1005. rm -f conftest*
  1006.  
  1007.  
  1008. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1009. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1010. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1011.   echo $ac_n "(cached) $ac_c" 1>&6
  1012. else
  1013.   cat > conftest.$ac_ext <<EOF
  1014. #line 1015 "configure"
  1015. #include "confdefs.h"
  1016. #include <minix/config.h>
  1017. EOF
  1018. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1019. { (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1020. ac_err=`grep -v '^ *+' conftest.out`
  1021. if test -z "$ac_err"; then
  1022.   rm -rf conftest*
  1023.   eval "ac_cv_header_$ac_safe=yes"
  1024. else
  1025.   echo "$ac_err" >&5
  1026.   rm -rf conftest*
  1027.   eval "ac_cv_header_$ac_safe=no"
  1028. fi
  1029. rm -f conftest*
  1030. fi
  1031. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1032.   echo "$ac_t""yes" 1>&6
  1033.   MINIX=yes
  1034. else
  1035.   echo "$ac_t""no" 1>&6
  1036. MINIX=
  1037. fi
  1038.  
  1039. if test "$MINIX" = yes; then
  1040.   cat >> confdefs.h <<\EOF
  1041. #define _POSIX_SOURCE 1
  1042. EOF
  1043.  
  1044.   cat >> confdefs.h <<\EOF
  1045. #define _POSIX_1_SOURCE 2
  1046. EOF
  1047.  
  1048.   cat >> confdefs.h <<\EOF
  1049. #define _MINIX 1
  1050. EOF
  1051.  
  1052. fi
  1053.  
  1054. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1055. if test -d /etc/conf/kconfig.d &&
  1056.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1057. then
  1058.   echo "$ac_t""yes" 1>&6
  1059.   ISC=yes # If later tests want to check for ISC.
  1060.   cat >> confdefs.h <<\EOF
  1061. #define _POSIX_SOURCE 1
  1062. EOF
  1063.  
  1064.   if test "$GCC" = yes; then
  1065.     CC="$CC -posix"
  1066.   else
  1067.     CC="$CC -Xp"
  1068.   fi
  1069. else
  1070.   echo "$ac_t""no" 1>&6
  1071.   ISC=
  1072. fi
  1073.  
  1074.  
  1075. ##############################################################################
  1076. ################ Check for libraries #########################################
  1077. ##############################################################################
  1078.  
  1079.  
  1080. ##############################################################################
  1081. ################ Check for header files ######################################
  1082. ##############################################################################
  1083.  
  1084. ac_header_dirent=no
  1085. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1086. do
  1087. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1088. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1089. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1090.   echo $ac_n "(cached) $ac_c" 1>&6
  1091. else
  1092.   cat > conftest.$ac_ext <<EOF
  1093. #line 1094 "configure"
  1094. #include "confdefs.h"
  1095. #include <sys/types.h>
  1096. #include <$ac_hdr>
  1097. int main() { return 0; }
  1098. int t() {
  1099. DIR *dirp = 0;
  1100. ; return 0; }
  1101. EOF
  1102. if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1103.   rm -rf conftest*
  1104.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1105. else
  1106.   rm -rf conftest*
  1107.   eval "ac_cv_header_dirent_$ac_safe=no"
  1108. fi
  1109. rm -f conftest*
  1110.  
  1111. fi
  1112. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1113.   echo "$ac_t""yes" 1>&6
  1114.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
  1115.   cat >> confdefs.h <<EOF
  1116. #define $ac_tr_hdr 1
  1117. EOF
  1118.  ac_header_dirent=$ac_hdr; break
  1119. else
  1120.   echo "$ac_t""no" 1>&6
  1121. fi
  1122. done
  1123. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1124. if test $ac_header_dirent = dirent.h; then
  1125. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1126. ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
  1127. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1128.   echo $ac_n "(cached) $ac_c" 1>&6
  1129. else
  1130.   ac_save_LIBS="$LIBS"
  1131. LIBS="-ldir  $LIBS"
  1132. cat > conftest.$ac_ext <<EOF
  1133. #line 1134 "configure"
  1134. #include "confdefs.h"
  1135. /* Override any gcc2 internal prototype to avoid an error.  */
  1136. /* We use char because int might match the return type of a gcc2
  1137.     builtin and then its argument prototype would still apply.  */
  1138. char opendir();
  1139.  
  1140. int main() { return 0; }
  1141. int t() {
  1142. opendir()
  1143. ; return 0; }
  1144. EOF
  1145. if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1146.   rm -rf conftest*
  1147.   eval "ac_cv_lib_$ac_lib_var=yes"
  1148. else
  1149.   rm -rf conftest*
  1150.   eval "ac_cv_lib_$ac_lib_var=no"
  1151. fi
  1152. rm -f conftest*
  1153. LIBS="$ac_save_LIBS"
  1154.  
  1155. fi
  1156. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1157.   echo "$ac_t""yes" 1>&6
  1158.   LIBS="$LIBS -ldir"
  1159. else
  1160.   echo "$ac_t""no" 1>&6
  1161. fi
  1162.  
  1163. else
  1164. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1165. ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
  1166. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1167.   echo $ac_n "(cached) $ac_c" 1>&6
  1168. else
  1169.   ac_save_LIBS="$LIBS"
  1170. LIBS="-lx  $LIBS"
  1171. cat > conftest.$ac_ext <<EOF
  1172. #line 1173 "configure"
  1173. #include "confdefs.h"
  1174. /* Override any gcc2 internal prototype to avoid an error.  */
  1175. /* We use char because int might match the return type of a gcc2
  1176.     builtin and then its argument prototype would still apply.  */
  1177. char opendir();
  1178.  
  1179. int main() { return 0; }
  1180. int t() {
  1181. opendir()
  1182. ; return 0; }
  1183. EOF
  1184. if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1185.   rm -rf conftest*
  1186.   eval "ac_cv_lib_$ac_lib_var=yes"
  1187. else
  1188.   rm -rf conftest*
  1189.   eval "ac_cv_lib_$ac_lib_var=no"
  1190. fi
  1191. rm -f conftest*
  1192. LIBS="$ac_save_LIBS"
  1193.  
  1194. fi
  1195. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1196.   echo "$ac_t""yes" 1>&6
  1197.   LIBS="$LIBS -lx"
  1198. else
  1199.   echo "$ac_t""no" 1>&6
  1200. fi
  1201.  
  1202. fi
  1203.  
  1204. # If we cannot run a trivial program, we must be cross compiling.
  1205. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1206. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1207.   echo $ac_n "(cached) $ac_c" 1>&6
  1208. else
  1209.   if test "$cross_compiling" = yes; then
  1210.   ac_cv_c_cross=yes
  1211. else
  1212. cat > conftest.$ac_ext <<EOF
  1213. #line 1214 "configure"
  1214. #include "confdefs.h"
  1215. main(){return(0);}
  1216. EOF
  1217. { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1218. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1219.   ac_cv_c_cross=no
  1220. else
  1221.   ac_cv_c_cross=yes
  1222. fi
  1223. fi
  1224. rm -fr conftest*
  1225. fi
  1226.  
  1227. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1228. cross_compiling=$ac_cv_c_cross
  1229.  
  1230. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1231. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1232.   echo $ac_n "(cached) $ac_c" 1>&6
  1233. else
  1234.   cat > conftest.$ac_ext <<EOF
  1235. #line 1236 "configure"
  1236. #include "confdefs.h"
  1237. #include <stdlib.h>
  1238. #include <stdarg.h>
  1239. #include <string.h>
  1240. #include <float.h>
  1241. EOF
  1242. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1243. { (eval echo configure:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1244. ac_err=`grep -v '^ *+' conftest.out`
  1245. if test -z "$ac_err"; then
  1246.   rm -rf conftest*
  1247.   ac_cv_header_stdc=yes
  1248. else
  1249.   echo "$ac_err" >&5
  1250.   rm -rf conftest*
  1251.   ac_cv_header_stdc=no
  1252. fi
  1253. rm -f conftest*
  1254.  
  1255. if test $ac_cv_header_stdc = yes; then
  1256.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1257. cat > conftest.$ac_ext <<EOF
  1258. #line 1259 "configure"
  1259. #include "confdefs.h"
  1260. #include <string.h>
  1261. EOF
  1262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1263.   egrep "memchr" >/dev/null 2>&1; then
  1264.   :
  1265. else
  1266.   rm -rf conftest*
  1267.   ac_cv_header_stdc=no
  1268. fi
  1269. rm -f conftest*
  1270.  
  1271. fi
  1272.  
  1273. if test $ac_cv_header_stdc = yes; then
  1274.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1275. cat > conftest.$ac_ext <<EOF
  1276. #line 1277 "configure"
  1277. #include "confdefs.h"
  1278. #include <stdlib.h>
  1279. EOF
  1280. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1281.   egrep "free" >/dev/null 2>&1; then
  1282.   :
  1283. else
  1284.   rm -rf conftest*
  1285.   ac_cv_header_stdc=no
  1286. fi
  1287. rm -f conftest*
  1288.  
  1289. fi
  1290.  
  1291. if test $ac_cv_header_stdc = yes; then
  1292.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1293. if test "$cross_compiling" = yes; then
  1294.   :
  1295. else
  1296. cat > conftest.$ac_ext <<EOF
  1297. #line 1298 "configure"
  1298. #include "confdefs.h"
  1299. #include <ctype.h>
  1300. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1301. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1302. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1303. int main () { int i; for (i = 0; i < 256; i++)
  1304. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1305. exit (0); }
  1306.  
  1307. EOF
  1308. { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1309. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1310.   :
  1311. else
  1312.   ac_cv_header_stdc=no
  1313. fi
  1314. fi
  1315. rm -fr conftest*
  1316. fi
  1317. fi
  1318.  
  1319. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1320. if test $ac_cv_header_stdc = yes; then
  1321.   cat >> confdefs.h <<\EOF
  1322. #define STDC_HEADERS 1
  1323. EOF
  1324.  
  1325. fi
  1326.  
  1327. echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
  1328. if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
  1329.   echo $ac_n "(cached) $ac_c" 1>&6
  1330. else
  1331.   cat > conftest.$ac_ext <<EOF
  1332. #line 1333 "configure"
  1333. #include "confdefs.h"
  1334. #include <sys/types.h>
  1335. #include <sys/stat.h>
  1336.  
  1337. #if defined(S_ISBLK) && defined(S_IFDIR)
  1338. # if S_ISBLK (S_IFDIR)
  1339. You lose.
  1340. # endif
  1341. #endif
  1342.  
  1343. #if defined(S_ISBLK) && defined(S_IFCHR)
  1344. # if S_ISBLK (S_IFCHR)
  1345. You lose.
  1346. # endif
  1347. #endif
  1348.  
  1349. #if defined(S_ISLNK) && defined(S_IFREG)
  1350. # if S_ISLNK (S_IFREG)
  1351. You lose.
  1352. # endif
  1353. #endif
  1354.  
  1355. #if defined(S_ISSOCK) && defined(S_IFREG)
  1356. # if S_ISSOCK (S_IFREG)
  1357. You lose.
  1358. # endif
  1359. #endif
  1360.  
  1361. EOF
  1362. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1363.   egrep "You lose" >/dev/null 2>&1; then
  1364.   rm -rf conftest*
  1365.   ac_cv_header_stat_broken=yes
  1366. else
  1367.   rm -rf conftest*
  1368.   ac_cv_header_stat_broken=no
  1369. fi
  1370. rm -f conftest*
  1371.  
  1372. fi
  1373.  
  1374. echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
  1375. if test $ac_cv_header_stat_broken = yes; then
  1376.   cat >> confdefs.h <<\EOF
  1377. #define STAT_MACROS_BROKEN 1
  1378. EOF
  1379.  
  1380. fi
  1381.  
  1382. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1383. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1384.   echo $ac_n "(cached) $ac_c" 1>&6
  1385. else
  1386.   cat > conftest.$ac_ext <<EOF
  1387. #line 1388 "configure"
  1388. #include "confdefs.h"
  1389. #include <sys/types.h>
  1390. #include <sys/wait.h>
  1391. #ifndef WEXITSTATUS
  1392. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1393. #endif
  1394. #ifndef WIFEXITED
  1395. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1396. #endif
  1397. int main() { return 0; }
  1398. int t() {
  1399. int s;
  1400. wait (&s);
  1401. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1402. ; return 0; }
  1403. EOF
  1404. if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1405.   rm -rf conftest*
  1406.   ac_cv_header_sys_wait_h=yes
  1407. else
  1408.   rm -rf conftest*
  1409.   ac_cv_header_sys_wait_h=no
  1410. fi
  1411. rm -f conftest*
  1412.  
  1413. fi
  1414.  
  1415. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1416. if test $ac_cv_header_sys_wait_h = yes; then
  1417.   cat >> confdefs.h <<\EOF
  1418. #define HAVE_SYS_WAIT_H 1
  1419. EOF
  1420.  
  1421. fi
  1422.  
  1423. for ac_hdr in sys/types.h sys/param.h sys/stat.h sys/ioctl.h
  1424. do
  1425. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1426. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1427. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1428.   echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430.   cat > conftest.$ac_ext <<EOF
  1431. #line 1432 "configure"
  1432. #include "confdefs.h"
  1433. #include <$ac_hdr>
  1434. EOF
  1435. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1436. { (eval echo configure:1437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1437. ac_err=`grep -v '^ *+' conftest.out`
  1438. if test -z "$ac_err"; then
  1439.   rm -rf conftest*
  1440.   eval "ac_cv_header_$ac_safe=yes"
  1441. else
  1442.   echo "$ac_err" >&5
  1443.   rm -rf conftest*
  1444.   eval "ac_cv_header_$ac_safe=no"
  1445. fi
  1446. rm -f conftest*
  1447. fi
  1448. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1449.   echo "$ac_t""yes" 1>&6
  1450.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1451.   cat >> confdefs.h <<EOF
  1452. #define $ac_tr_hdr 1
  1453. EOF
  1454.  
  1455. else
  1456.   echo "$ac_t""no" 1>&6
  1457. fi
  1458. done
  1459.  
  1460. for ac_hdr in limits.h stddef.h stdlib.h unistd.h string.h fcntl.h
  1461. do
  1462. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1463. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1464. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1465.   echo $ac_n "(cached) $ac_c" 1>&6
  1466. else
  1467.   cat > conftest.$ac_ext <<EOF
  1468. #line 1469 "configure"
  1469. #include "confdefs.h"
  1470. #include <$ac_hdr>
  1471. EOF
  1472. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1473. { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1474. ac_err=`grep -v '^ *+' conftest.out`
  1475. if test -z "$ac_err"; then
  1476.   rm -rf conftest*
  1477.   eval "ac_cv_header_$ac_safe=yes"
  1478. else
  1479.   echo "$ac_err" >&5
  1480.   rm -rf conftest*
  1481.   eval "ac_cv_header_$ac_safe=no"
  1482. fi
  1483. rm -f conftest*
  1484. fi
  1485. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1486.   echo "$ac_t""yes" 1>&6
  1487.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1488.   cat >> confdefs.h <<EOF
  1489. #define $ac_tr_hdr 1
  1490. EOF
  1491.  
  1492. else
  1493.   echo "$ac_t""no" 1>&6
  1494. fi
  1495. done
  1496.  
  1497. for ac_hdr in malloc.h termios.h termio.h sgtty.h regex.h memory.h
  1498. do
  1499. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1500. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1501. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1502.   echo $ac_n "(cached) $ac_c" 1>&6
  1503. else
  1504.   cat > conftest.$ac_ext <<EOF
  1505. #line 1506 "configure"
  1506. #include "confdefs.h"
  1507. #include <$ac_hdr>
  1508. EOF
  1509. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1510. { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1511. ac_err=`grep -v '^ *+' conftest.out`
  1512. if test -z "$ac_err"; then
  1513.   rm -rf conftest*
  1514.   eval "ac_cv_header_$ac_safe=yes"
  1515. else
  1516.   echo "$ac_err" >&5
  1517.   rm -rf conftest*
  1518.   eval "ac_cv_header_$ac_safe=no"
  1519. fi
  1520. rm -f conftest*
  1521. fi
  1522. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1523.   echo "$ac_t""yes" 1>&6
  1524.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1525.   cat >> confdefs.h <<EOF
  1526. #define $ac_tr_hdr 1
  1527. EOF
  1528.  
  1529. else
  1530.   echo "$ac_t""no" 1>&6
  1531. fi
  1532. done
  1533.  
  1534.  
  1535. ##############################################################################
  1536. ################ Check for typedefs, structs, and compiler params ############
  1537. ##############################################################################
  1538.  
  1539. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1540. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1541.   echo $ac_n "(cached) $ac_c" 1>&6
  1542. else
  1543.   cat > conftest.$ac_ext <<EOF
  1544. #line 1545 "configure"
  1545. #include "confdefs.h"
  1546.  
  1547. int main() { return 0; }
  1548. int t() {
  1549.  
  1550. /* Ultrix mips cc rejects this.  */
  1551. typedef int charset[2]; const charset x;
  1552. /* SunOS 4.1.1 cc rejects this.  */
  1553. char const *const *ccp;
  1554. char **p;
  1555. /* NEC SVR4.0.2 mips cc rejects this.  */
  1556. struct point {int x, y;};
  1557. static struct point const zero = {0,0};
  1558. /* AIX XL C 1.02.0.0 rejects this.
  1559.    It does not let you subtract one const X* pointer from another in an arm
  1560.    of an if-expression whose if-part is not a constant expression */
  1561. const char *g = "string";
  1562. ccp = &g + (g ? g-g : 0);
  1563. /* HPUX 7.0 cc rejects these. */
  1564. ++ccp;
  1565. p = (char**) ccp;
  1566. ccp = (char const *const *) p;
  1567. { /* SCO 3.2v4 cc rejects this.  */
  1568.   char *t;
  1569.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1570.  
  1571.   *t++ = 0;
  1572. }
  1573. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1574.   int x[] = {25, 17};
  1575.   const int *foo = &x[0];
  1576.   ++foo;
  1577. }
  1578. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1579.   typedef const int *iptr;
  1580.   iptr p = 0;
  1581.   ++p;
  1582. }
  1583. { /* AIX XL C 1.02.0.0 rejects this saying
  1584.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1585.   struct s { int j; const int *ap[3]; };
  1586.   struct s *b; b->j = 5;
  1587. }
  1588. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1589.   const int foo = 10;
  1590. }
  1591.  
  1592. ; return 0; }
  1593. EOF
  1594. if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1595.   rm -rf conftest*
  1596.   ac_cv_c_const=yes
  1597. else
  1598.   rm -rf conftest*
  1599.   ac_cv_c_const=no
  1600. fi
  1601. rm -f conftest*
  1602.  
  1603. fi
  1604.  
  1605. echo "$ac_t""$ac_cv_c_const" 1>&6
  1606. if test $ac_cv_c_const = no; then
  1607.   cat >> confdefs.h <<\EOF
  1608. #define const 
  1609. EOF
  1610.  
  1611. fi
  1612.  
  1613.  
  1614. echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
  1615. if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
  1616.   echo $ac_n "(cached) $ac_c" 1>&6
  1617. else
  1618.   ac_cv_prog_cc_stdc=no
  1619. ac_save_CC="$CC"
  1620. # Don't try gcc -ansi; that turns off useful extensions and
  1621. # breaks some systems' header files.
  1622. # AIX            -qlanglvl=ansi
  1623. # Ultrix and OSF/1    -std1
  1624. # HP-UX            -Aa -D_HPUX_SOURCE
  1625. # SVR4            -Xc
  1626. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  1627. do
  1628.   CC="$ac_save_CC $ac_arg"
  1629.   cat > conftest.$ac_ext <<EOF
  1630. #line 1631 "configure"
  1631. #include "confdefs.h"
  1632. #if !defined(__STDC__) || __STDC__ != 1
  1633. choke me
  1634. #endif
  1635.  
  1636. int main() { return 0; }
  1637. int t() {
  1638. /* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
  1639. #include <sys/types.h>
  1640. #include <sys/stat.h>
  1641. int test (int i, double x);
  1642. struct s1 {int (*f) (int a);};
  1643. struct s2 {int (*f) (double a);};
  1644. ; return 0; }
  1645. EOF
  1646. if { (eval echo configure:1647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1647.   rm -rf conftest*
  1648.   ac_cv_prog_cc_stdc="$ac_arg"; break
  1649. fi
  1650. rm -f conftest*
  1651.  
  1652. done
  1653. CC="$ac_save_CC"
  1654.  
  1655. fi
  1656.  
  1657. echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
  1658. case "x$ac_cv_prog_cc_stdc" in
  1659.   x|xno) ;;
  1660.   *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  1661. esac
  1662.  
  1663.  
  1664.  
  1665. echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
  1666. if test "$ac_cv_prog_cc_stdc" != no; then
  1667.   echo "$ac_t""yes" 1>&6
  1668.   cat >> confdefs.h <<\EOF
  1669. #define PROTOTYPES 1
  1670. EOF
  1671.  
  1672.   U= ANSI2KNR=
  1673. else
  1674.   echo "$ac_t""no" 1>&6
  1675.   U=_ ANSI2KNR=./ansi2knr
  1676.   # Ensure some checks needed by ansi2knr itself.
  1677.   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1678. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1679.   echo $ac_n "(cached) $ac_c" 1>&6
  1680. else
  1681.   cat > conftest.$ac_ext <<EOF
  1682. #line 1683 "configure"
  1683. #include "confdefs.h"
  1684. #include <stdlib.h>
  1685. #include <stdarg.h>
  1686. #include <string.h>
  1687. #include <float.h>
  1688. EOF
  1689. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1690. { (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1691. ac_err=`grep -v '^ *+' conftest.out`
  1692. if test -z "$ac_err"; then
  1693.   rm -rf conftest*
  1694.   ac_cv_header_stdc=yes
  1695. else
  1696.   echo "$ac_err" >&5
  1697.   rm -rf conftest*
  1698.   ac_cv_header_stdc=no
  1699. fi
  1700. rm -f conftest*
  1701.  
  1702. if test $ac_cv_header_stdc = yes; then
  1703.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1704. cat > conftest.$ac_ext <<EOF
  1705. #line 1706 "configure"
  1706. #include "confdefs.h"
  1707. #include <string.h>
  1708. EOF
  1709. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1710.   egrep "memchr" >/dev/null 2>&1; then
  1711.   :
  1712. else
  1713.   rm -rf conftest*
  1714.   ac_cv_header_stdc=no
  1715. fi
  1716. rm -f conftest*
  1717.  
  1718. fi
  1719.  
  1720. if test $ac_cv_header_stdc = yes; then
  1721.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1722. cat > conftest.$ac_ext <<EOF
  1723. #line 1724 "configure"
  1724. #include "confdefs.h"
  1725. #include <stdlib.h>
  1726. EOF
  1727. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1728.   egrep "free" >/dev/null 2>&1; then
  1729.   :
  1730. else
  1731.   rm -rf conftest*
  1732.   ac_cv_header_stdc=no
  1733. fi
  1734. rm -f conftest*
  1735.  
  1736. fi
  1737.  
  1738. if test $ac_cv_header_stdc = yes; then
  1739.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1740. if test "$cross_compiling" = yes; then
  1741.   :
  1742. else
  1743. cat > conftest.$ac_ext <<EOF
  1744. #line 1745 "configure"
  1745. #include "confdefs.h"
  1746. #include <ctype.h>
  1747. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1748. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1749. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1750. int main () { int i; for (i = 0; i < 256; i++)
  1751. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1752. exit (0); }
  1753.  
  1754. EOF
  1755. { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1756. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1757.   :
  1758. else
  1759.   ac_cv_header_stdc=no
  1760. fi
  1761. fi
  1762. rm -fr conftest*
  1763. fi
  1764. fi
  1765.  
  1766. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1767. if test $ac_cv_header_stdc = yes; then
  1768.   cat >> confdefs.h <<\EOF
  1769. #define STDC_HEADERS 1
  1770. EOF
  1771.  
  1772. fi
  1773.  
  1774.   for ac_hdr in string.h
  1775. do
  1776. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1777. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1778. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1779.   echo $ac_n "(cached) $ac_c" 1>&6
  1780. else
  1781.   cat > conftest.$ac_ext <<EOF
  1782. #line 1783 "configure"
  1783. #include "confdefs.h"
  1784. #include <$ac_hdr>
  1785. EOF
  1786. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1787. { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1788. ac_err=`grep -v '^ *+' conftest.out`
  1789. if test -z "$ac_err"; then
  1790.   rm -rf conftest*
  1791.   eval "ac_cv_header_$ac_safe=yes"
  1792. else
  1793.   echo "$ac_err" >&5
  1794.   rm -rf conftest*
  1795.   eval "ac_cv_header_$ac_safe=no"
  1796. fi
  1797. rm -f conftest*
  1798. fi
  1799. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1800.   echo "$ac_t""yes" 1>&6
  1801.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  1802.   cat >> confdefs.h <<EOF
  1803. #define $ac_tr_hdr 1
  1804. EOF
  1805.  
  1806. else
  1807.   echo "$ac_t""no" 1>&6
  1808. fi
  1809. done
  1810.  
  1811. fi
  1812.  
  1813. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1814. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1815.   echo $ac_n "(cached) $ac_c" 1>&6
  1816. else
  1817.   cat > conftest.$ac_ext <<EOF
  1818. #line 1819 "configure"
  1819. #include "confdefs.h"
  1820. #include <sys/types.h>
  1821. #include <signal.h>
  1822. #ifdef signal
  1823. #undef signal
  1824. #endif
  1825. #ifdef __cplusplus
  1826. extern "C" void (*signal (int, void (*)(int)))(int);
  1827. #else
  1828. void (*signal ()) ();
  1829. #endif
  1830.  
  1831. int main() { return 0; }
  1832. int t() {
  1833. int i;
  1834. ; return 0; }
  1835. EOF
  1836. if { (eval echo configure:1837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1837.   rm -rf conftest*
  1838.   ac_cv_type_signal=void
  1839. else
  1840.   rm -rf conftest*
  1841.   ac_cv_type_signal=int
  1842. fi
  1843. rm -f conftest*
  1844.  
  1845. fi
  1846.  
  1847. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1848. cat >> confdefs.h <<EOF
  1849. #define RETSIGTYPE $ac_cv_type_signal
  1850. EOF
  1851.  
  1852.  
  1853. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  1854. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  1855.   echo $ac_n "(cached) $ac_c" 1>&6
  1856. else
  1857.   cat > conftest.$ac_ext <<EOF
  1858. #line 1859 "configure"
  1859. #include "confdefs.h"
  1860. #include <sys/types.h>
  1861. #if STDC_HEADERS
  1862. #include <stdlib.h>
  1863. #endif
  1864. EOF
  1865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1866.   egrep "off_t" >/dev/null 2>&1; then
  1867.   rm -rf conftest*
  1868.   ac_cv_type_off_t=yes
  1869. else
  1870.   rm -rf conftest*
  1871.   ac_cv_type_off_t=no
  1872. fi
  1873. rm -f conftest*
  1874.  
  1875. fi
  1876. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  1877. if test $ac_cv_type_off_t = no; then
  1878.   cat >> confdefs.h <<\EOF
  1879. #define off_t long
  1880. EOF
  1881.  
  1882. fi
  1883.  
  1884. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  1885. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  1886.   echo $ac_n "(cached) $ac_c" 1>&6
  1887. else
  1888.   cat > conftest.$ac_ext <<EOF
  1889. #line 1890 "configure"
  1890. #include "confdefs.h"
  1891. #include <sys/types.h>
  1892. #if STDC_HEADERS
  1893. #include <stdlib.h>
  1894. #endif
  1895. EOF
  1896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1897.   egrep "size_t" >/dev/null 2>&1; then
  1898.   rm -rf conftest*
  1899.   ac_cv_type_size_t=yes
  1900. else
  1901.   rm -rf conftest*
  1902.   ac_cv_type_size_t=no
  1903. fi
  1904. rm -f conftest*
  1905.  
  1906. fi
  1907. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  1908. if test $ac_cv_type_size_t = no; then
  1909.   cat >> confdefs.h <<\EOF
  1910. #define size_t unsigned
  1911. EOF
  1912.  
  1913. fi
  1914.  
  1915. echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
  1916. if eval "test \"`echo '$''{'ac_cv_type_ptrdiff_t'+set}'`\" = set"; then
  1917.   echo $ac_n "(cached) $ac_c" 1>&6
  1918. else
  1919.   cat > conftest.$ac_ext <<EOF
  1920. #line 1921 "configure"
  1921. #include "confdefs.h"
  1922. #include <stddef.h>
  1923. #include <sys/types.h>
  1924. int main() { return 0; }
  1925. int t() {
  1926. ptrdiff_t p
  1927. ; return 0; }
  1928. EOF
  1929. if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1930.   rm -rf conftest*
  1931.   ac_cv_type_ptrdiff_t=yes
  1932. else
  1933.   rm -rf conftest*
  1934.   ac_cv_type_ptrdiff_t=no
  1935. fi
  1936. rm -f conftest*
  1937.  
  1938. fi
  1939.  
  1940. echo "$ac_t""$ac_cv_type_ptrdiff_t" 1>&6
  1941.    if test $ac_cv_type_ptrdiff_t = yes; then
  1942.      cat >> confdefs.h <<\EOF
  1943. #define HAVE_PTRDIFF_T 1
  1944. EOF
  1945.  
  1946.    fi
  1947.  
  1948.  
  1949. ##############################################################################
  1950. ################ Set default compilation flags ###############################
  1951. ##############################################################################
  1952.  
  1953. : ${CFLAGS="-O -g"}
  1954. : ${LDFLAGS=-g}
  1955.  
  1956.  
  1957.  
  1958. ##############################################################################
  1959. ################ Check for library functions & system calls ##################
  1960. ##############################################################################
  1961.  
  1962. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1963. # for constant arguments.  Useless!
  1964. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1965. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1966.   echo $ac_n "(cached) $ac_c" 1>&6
  1967. else
  1968.   cat > conftest.$ac_ext <<EOF
  1969. #line 1970 "configure"
  1970. #include "confdefs.h"
  1971. #include <alloca.h>
  1972. int main() { return 0; }
  1973. int t() {
  1974. char *p = alloca(2 * sizeof(int));
  1975. ; return 0; }
  1976. EOF
  1977. if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1978.   rm -rf conftest*
  1979.   ac_cv_header_alloca_h=yes
  1980. else
  1981.   rm -rf conftest*
  1982.   ac_cv_header_alloca_h=no
  1983. fi
  1984. rm -f conftest*
  1985.  
  1986. fi
  1987.  
  1988. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1989. if test $ac_cv_header_alloca_h = yes; then
  1990.   cat >> confdefs.h <<\EOF
  1991. #define HAVE_ALLOCA_H 1
  1992. EOF
  1993.  
  1994. fi
  1995.  
  1996. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1997. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  1998.   echo $ac_n "(cached) $ac_c" 1>&6
  1999. else
  2000.   cat > conftest.$ac_ext <<EOF
  2001. #line 2002 "configure"
  2002. #include "confdefs.h"
  2003.  
  2004. #ifdef __GNUC__
  2005. # define alloca __builtin_alloca
  2006. #else
  2007. # if HAVE_ALLOCA_H
  2008. #  include <alloca.h>
  2009. # else
  2010. #  ifdef _AIX
  2011.  #pragma alloca
  2012. #  else
  2013. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2014. char *alloca ();
  2015. #   endif
  2016. #  endif
  2017. # endif
  2018. #endif
  2019.  
  2020. int main() { return 0; }
  2021. int t() {
  2022. char *p = (char *) alloca(1);
  2023. ; return 0; }
  2024. EOF
  2025. if { (eval echo configure:2026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2026.   rm -rf conftest*
  2027.   ac_cv_func_alloca=yes
  2028. else
  2029.   rm -rf conftest*
  2030.   ac_cv_func_alloca=no
  2031. fi
  2032. rm -f conftest*
  2033.  
  2034. fi
  2035.  
  2036. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2037. if test $ac_cv_func_alloca = yes; then
  2038.   cat >> confdefs.h <<\EOF
  2039. #define HAVE_ALLOCA 1
  2040. EOF
  2041.  
  2042. fi
  2043.  
  2044. if test $ac_cv_func_alloca = no; then
  2045.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2046.   # that cause trouble.  Some versions do not even contain alloca or
  2047.   # contain a buggy version.  If you still want to use their alloca,
  2048.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2049.   ALLOCA=alloca.o
  2050.   cat >> confdefs.h <<\EOF
  2051. #define C_ALLOCA 1
  2052. EOF
  2053.  
  2054.  
  2055. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2056. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2057.   echo $ac_n "(cached) $ac_c" 1>&6
  2058. else
  2059.   cat > conftest.$ac_ext <<EOF
  2060. #line 2061 "configure"
  2061. #include "confdefs.h"
  2062. #if defined(CRAY) && ! defined(CRAY2)
  2063. webecray
  2064. #else
  2065. wenotbecray
  2066. #endif
  2067.  
  2068. EOF
  2069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2070.   egrep "webecray" >/dev/null 2>&1; then
  2071.   rm -rf conftest*
  2072.   ac_cv_os_cray=yes
  2073. else
  2074.   rm -rf conftest*
  2075.   ac_cv_os_cray=no
  2076. fi
  2077. rm -f conftest*
  2078.  
  2079. fi
  2080.  
  2081. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2082. if test $ac_cv_os_cray = yes; then
  2083. for ac_func in _getb67 GETB67 getb67; do
  2084.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2085. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2086.   echo $ac_n "(cached) $ac_c" 1>&6
  2087. else
  2088.   cat > conftest.$ac_ext <<EOF
  2089. #line 2090 "configure"
  2090. #include "confdefs.h"
  2091. /* System header to define __stub macros and hopefully few prototypes,
  2092.     which can conflict with char $ac_func(); below.  */
  2093. #include <assert.h>
  2094. /* Override any gcc2 internal prototype to avoid an error.  */
  2095. /* We use char because int might match the return type of a gcc2
  2096.     builtin and then its argument prototype would still apply.  */
  2097. char $ac_func();
  2098.  
  2099. int main() { return 0; }
  2100. int t() {
  2101.  
  2102. /* The GNU C library defines this for functions which it implements
  2103.     to always fail with ENOSYS.  Some functions are actually named
  2104.     something starting with __ and the normal name is an alias.  */
  2105. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2106. choke me
  2107. #else
  2108. $ac_func();
  2109. #endif
  2110.  
  2111. ; return 0; }
  2112. EOF
  2113. if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2114.   rm -rf conftest*
  2115.   eval "ac_cv_func_$ac_func=yes"
  2116. else
  2117.   rm -rf conftest*
  2118.   eval "ac_cv_func_$ac_func=no"
  2119. fi
  2120. rm -f conftest*
  2121.  
  2122. fi
  2123. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2124.   echo "$ac_t""yes" 1>&6
  2125.   cat >> confdefs.h <<EOF
  2126. #define CRAY_STACKSEG_END $ac_func
  2127. EOF
  2128.  
  2129.   break
  2130. else
  2131.   echo "$ac_t""no" 1>&6
  2132. fi
  2133.  
  2134. done
  2135. fi
  2136.  
  2137. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2138. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2139.   echo $ac_n "(cached) $ac_c" 1>&6
  2140. else
  2141.   if test "$cross_compiling" = yes; then
  2142.   ac_cv_c_stack_direction=0
  2143. else
  2144. cat > conftest.$ac_ext <<EOF
  2145. #line 2146 "configure"
  2146. #include "confdefs.h"
  2147. find_stack_direction ()
  2148. {
  2149.   static char *addr = 0;
  2150.   auto char dummy;
  2151.   if (addr == 0)
  2152.     {
  2153.       addr = &dummy;
  2154.       return find_stack_direction ();
  2155.     }
  2156.   else
  2157.     return (&dummy > addr) ? 1 : -1;
  2158. }
  2159. main ()
  2160. {
  2161.   exit (find_stack_direction() < 0);
  2162. }
  2163. EOF
  2164. { (eval echo configure:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2165. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2166.   ac_cv_c_stack_direction=1
  2167. else
  2168.   ac_cv_c_stack_direction=-1
  2169. fi
  2170. fi
  2171. rm -fr conftest*
  2172. fi
  2173.  
  2174. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2175. cat >> confdefs.h <<EOF
  2176. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2177. EOF
  2178.  
  2179. fi
  2180.  
  2181. echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
  2182. # Check whether --with-regex or --without-regex was given.
  2183. if test "${with_regex+set}" = set; then
  2184.   withval="$with_regex"
  2185.   if test "$withval" = yes; then
  2186.   ac_with_regex=1
  2187.   echo "$ac_t""regex" 1>&6
  2188.   cat >> confdefs.h <<\EOF
  2189. #define WITH_REGEX 1
  2190. EOF
  2191.  
  2192.   REGEXOBJ=regex.o
  2193. fi
  2194. fi
  2195.  
  2196. if test -z "$ac_with_regex"; then
  2197.   echo "$ac_t""rx" 1>&6
  2198.   echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  2199. if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
  2200.   echo $ac_n "(cached) $ac_c" 1>&6
  2201. else
  2202.   cat > conftest.$ac_ext <<EOF
  2203. #line 2204 "configure"
  2204. #include "confdefs.h"
  2205. /* System header to define __stub macros and hopefully few prototypes,
  2206.     which can conflict with char re_rx_search(); below.  */
  2207. #include <assert.h>
  2208. /* Override any gcc2 internal prototype to avoid an error.  */
  2209. /* We use char because int might match the return type of a gcc2
  2210.     builtin and then its argument prototype would still apply.  */
  2211. char re_rx_search();
  2212.  
  2213. int main() { return 0; }
  2214. int t() {
  2215.  
  2216. /* The GNU C library defines this for functions which it implements
  2217.     to always fail with ENOSYS.  Some functions are actually named
  2218.     something starting with __ and the normal name is an alias.  */
  2219. #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
  2220. choke me
  2221. #else
  2222. re_rx_search();
  2223. #endif
  2224.  
  2225. ; return 0; }
  2226. EOF
  2227. if { (eval echo configure:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2228.   rm -rf conftest*
  2229.   eval "ac_cv_func_re_rx_search=yes"
  2230. else
  2231.   rm -rf conftest*
  2232.   eval "ac_cv_func_re_rx_search=no"
  2233. fi
  2234. rm -f conftest*
  2235.  
  2236. fi
  2237. if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
  2238.   echo "$ac_t""yes" 1>&6
  2239.   :
  2240. else
  2241.   echo "$ac_t""no" 1>&6
  2242. REGEXOBJ=rx.o
  2243. fi
  2244.  
  2245. fi
  2246.  
  2247. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2248. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2249.   echo $ac_n "(cached) $ac_c" 1>&6
  2250. else
  2251.   cat > conftest.$ac_ext <<EOF
  2252. #line 2253 "configure"
  2253. #include "confdefs.h"
  2254. /* System header to define __stub macros and hopefully few prototypes,
  2255.     which can conflict with char vprintf(); below.  */
  2256. #include <assert.h>
  2257. /* Override any gcc2 internal prototype to avoid an error.  */
  2258. /* We use char because int might match the return type of a gcc2
  2259.     builtin and then its argument prototype would still apply.  */
  2260. char vprintf();
  2261.  
  2262. int main() { return 0; }
  2263. int t() {
  2264.  
  2265. /* The GNU C library defines this for functions which it implements
  2266.     to always fail with ENOSYS.  Some functions are actually named
  2267.     something starting with __ and the normal name is an alias.  */
  2268. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2269. choke me
  2270. #else
  2271. vprintf();
  2272. #endif
  2273.  
  2274. ; return 0; }
  2275. EOF
  2276. if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2277.   rm -rf conftest*
  2278.   eval "ac_cv_func_vprintf=yes"
  2279. else
  2280.   rm -rf conftest*
  2281.   eval "ac_cv_func_vprintf=no"
  2282. fi
  2283. rm -f conftest*
  2284.  
  2285. fi
  2286. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2287.   echo "$ac_t""yes" 1>&6
  2288.   cat >> confdefs.h <<\EOF
  2289. #define HAVE_VPRINTF 1
  2290. EOF
  2291.  
  2292. else
  2293.   echo "$ac_t""no" 1>&6
  2294. fi
  2295.  
  2296. if test "$ac_cv_func_vprintf" != yes; then
  2297. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2298. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2299.   echo $ac_n "(cached) $ac_c" 1>&6
  2300. else
  2301.   cat > conftest.$ac_ext <<EOF
  2302. #line 2303 "configure"
  2303. #include "confdefs.h"
  2304. /* System header to define __stub macros and hopefully few prototypes,
  2305.     which can conflict with char _doprnt(); below.  */
  2306. #include <assert.h>
  2307. /* Override any gcc2 internal prototype to avoid an error.  */
  2308. /* We use char because int might match the return type of a gcc2
  2309.     builtin and then its argument prototype would still apply.  */
  2310. char _doprnt();
  2311.  
  2312. int main() { return 0; }
  2313. int t() {
  2314.  
  2315. /* The GNU C library defines this for functions which it implements
  2316.     to always fail with ENOSYS.  Some functions are actually named
  2317.     something starting with __ and the normal name is an alias.  */
  2318. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2319. choke me
  2320. #else
  2321. _doprnt();
  2322. #endif
  2323.  
  2324. ; return 0; }
  2325. EOF
  2326. if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2327.   rm -rf conftest*
  2328.   eval "ac_cv_func__doprnt=yes"
  2329. else
  2330.   rm -rf conftest*
  2331.   eval "ac_cv_func__doprnt=no"
  2332. fi
  2333. rm -f conftest*
  2334.  
  2335. fi
  2336. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2337.   echo "$ac_t""yes" 1>&6
  2338.   cat >> confdefs.h <<\EOF
  2339. #define HAVE_DOPRNT 1
  2340. EOF
  2341.  
  2342. else
  2343.   echo "$ac_t""no" 1>&6
  2344. fi
  2345.  
  2346. fi
  2347.  
  2348. for ac_func in getwd getcwd link strerror isascii bcopy bzero memcpy
  2349. do
  2350. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2351. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2352.   echo $ac_n "(cached) $ac_c" 1>&6
  2353. else
  2354.   cat > conftest.$ac_ext <<EOF
  2355. #line 2356 "configure"
  2356. #include "confdefs.h"
  2357. /* System header to define __stub macros and hopefully few prototypes,
  2358.     which can conflict with char $ac_func(); below.  */
  2359. #include <assert.h>
  2360. /* Override any gcc2 internal prototype to avoid an error.  */
  2361. /* We use char because int might match the return type of a gcc2
  2362.     builtin and then its argument prototype would still apply.  */
  2363. char $ac_func();
  2364.  
  2365. int main() { return 0; }
  2366. int t() {
  2367.  
  2368. /* The GNU C library defines this for functions which it implements
  2369.     to always fail with ENOSYS.  Some functions are actually named
  2370.     something starting with __ and the normal name is an alias.  */
  2371. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2372. choke me
  2373. #else
  2374. $ac_func();
  2375. #endif
  2376.  
  2377. ; return 0; }
  2378. EOF
  2379. if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2380.   rm -rf conftest*
  2381.   eval "ac_cv_func_$ac_func=yes"
  2382. else
  2383.   rm -rf conftest*
  2384.   eval "ac_cv_func_$ac_func=no"
  2385. fi
  2386. rm -f conftest*
  2387.  
  2388. fi
  2389. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2390.   echo "$ac_t""yes" 1>&6
  2391.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2392.   cat >> confdefs.h <<EOF
  2393. #define $ac_tr_func 1
  2394. EOF
  2395.  
  2396. else
  2397.   echo "$ac_t""no" 1>&6
  2398. fi
  2399. done
  2400.  
  2401. for ac_func in strdup strndup strspn strcspn strpbrk strstr strtok
  2402. do
  2403. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2404. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2405.   echo $ac_n "(cached) $ac_c" 1>&6
  2406. else
  2407.   cat > conftest.$ac_ext <<EOF
  2408. #line 2409 "configure"
  2409. #include "confdefs.h"
  2410. /* System header to define __stub macros and hopefully few prototypes,
  2411.     which can conflict with char $ac_func(); below.  */
  2412. #include <assert.h>
  2413. /* Override any gcc2 internal prototype to avoid an error.  */
  2414. /* We use char because int might match the return type of a gcc2
  2415.     builtin and then its argument prototype would still apply.  */
  2416. char $ac_func();
  2417.  
  2418. int main() { return 0; }
  2419. int t() {
  2420.  
  2421. /* The GNU C library defines this for functions which it implements
  2422.     to always fail with ENOSYS.  Some functions are actually named
  2423.     something starting with __ and the normal name is an alias.  */
  2424. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2425. choke me
  2426. #else
  2427. $ac_func();
  2428. #endif
  2429.  
  2430. ; return 0; }
  2431. EOF
  2432. if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2433.   rm -rf conftest*
  2434.   eval "ac_cv_func_$ac_func=yes"
  2435. else
  2436.   rm -rf conftest*
  2437.   eval "ac_cv_func_$ac_func=no"
  2438. fi
  2439. rm -f conftest*
  2440.  
  2441. fi
  2442. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2443.   echo "$ac_t""yes" 1>&6
  2444.   :
  2445. else
  2446.   echo "$ac_t""no" 1>&6
  2447. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2448. fi
  2449.  
  2450. done
  2451.  
  2452. for ac_func in basename dirname fnmatch error memcpy memset
  2453. do
  2454. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2455. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2456.   echo $ac_n "(cached) $ac_c" 1>&6
  2457. else
  2458.   cat > conftest.$ac_ext <<EOF
  2459. #line 2460 "configure"
  2460. #include "confdefs.h"
  2461. /* System header to define __stub macros and hopefully few prototypes,
  2462.     which can conflict with char $ac_func(); below.  */
  2463. #include <assert.h>
  2464. /* Override any gcc2 internal prototype to avoid an error.  */
  2465. /* We use char because int might match the return type of a gcc2
  2466.     builtin and then its argument prototype would still apply.  */
  2467. char $ac_func();
  2468.  
  2469. int main() { return 0; }
  2470. int t() {
  2471.  
  2472. /* The GNU C library defines this for functions which it implements
  2473.     to always fail with ENOSYS.  Some functions are actually named
  2474.     something starting with __ and the normal name is an alias.  */
  2475. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2476. choke me
  2477. #else
  2478. $ac_func();
  2479. #endif
  2480.  
  2481. ; return 0; }
  2482. EOF
  2483. if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2484.   rm -rf conftest*
  2485.   eval "ac_cv_func_$ac_func=yes"
  2486. else
  2487.   rm -rf conftest*
  2488.   eval "ac_cv_func_$ac_func=no"
  2489. fi
  2490. rm -f conftest*
  2491.  
  2492. fi
  2493. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2494.   echo "$ac_t""yes" 1>&6
  2495.   :
  2496. else
  2497.   echo "$ac_t""no" 1>&6
  2498. LIBOBJS="$LIBOBJS ${ac_func}.o"
  2499. fi
  2500.  
  2501. done
  2502.  
  2503. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  2504. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  2505.   echo $ac_n "(cached) $ac_c" 1>&6
  2506. else
  2507.   cat > conftest.$ac_ext <<EOF
  2508. #line 2509 "configure"
  2509. #include "confdefs.h"
  2510. /* System header to define __stub macros and hopefully few prototypes,
  2511.     which can conflict with char getopt_long(); below.  */
  2512. #include <assert.h>
  2513. /* Override any gcc2 internal prototype to avoid an error.  */
  2514. /* We use char because int might match the return type of a gcc2
  2515.     builtin and then its argument prototype would still apply.  */
  2516. char getopt_long();
  2517.  
  2518. int main() { return 0; }
  2519. int t() {
  2520.  
  2521. /* The GNU C library defines this for functions which it implements
  2522.     to always fail with ENOSYS.  Some functions are actually named
  2523.     something starting with __ and the normal name is an alias.  */
  2524. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  2525. choke me
  2526. #else
  2527. getopt_long();
  2528. #endif
  2529.  
  2530. ; return 0; }
  2531. EOF
  2532. if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2533.   rm -rf conftest*
  2534.   eval "ac_cv_func_getopt_long=yes"
  2535. else
  2536.   rm -rf conftest*
  2537.   eval "ac_cv_func_getopt_long=no"
  2538. fi
  2539. rm -f conftest*
  2540.  
  2541. fi
  2542. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  2543.   echo "$ac_t""yes" 1>&6
  2544.   :
  2545. else
  2546.   echo "$ac_t""no" 1>&6
  2547. LIBOBJS="$LIBOBJS getopt1.o getopt.o"
  2548. fi
  2549.  
  2550.  
  2551. echo $ac_n "checking for obstacks""... $ac_c" 1>&6
  2552. if eval "test \"`echo '$''{'gt_cv_func_obstack'+set}'`\" = set"; then
  2553.   echo $ac_n "(cached) $ac_c" 1>&6
  2554. else
  2555.   cat > conftest.$ac_ext <<EOF
  2556. #line 2557 "configure"
  2557. #include "confdefs.h"
  2558. #include "obstack.h"
  2559. int main() { return 0; }
  2560. int t() {
  2561. struct obstack *mem;obstack_free(mem,NULL)
  2562. ; return 0; }
  2563. EOF
  2564. if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2565.   rm -rf conftest*
  2566.   gt_cv_func_obstack=yes
  2567. else
  2568.   rm -rf conftest*
  2569.   gt_cv_func_obstack=no
  2570. fi
  2571. rm -f conftest*
  2572.  
  2573. fi
  2574.  
  2575. echo "$ac_t""$gt_cv_func_obstack" 1>&6
  2576. if test $gt_cv_func_obstack = no; then
  2577.   LIBOBJS="$LIBOBJS obstack.o"
  2578. fi
  2579.  
  2580.  
  2581. ##############################################################################
  2582. ################ Internationalization ########################################
  2583. ##############################################################################
  2584.  
  2585. echo $ac_n "checking for inline""... $ac_c" 1>&6
  2586. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  2587.   echo $ac_n "(cached) $ac_c" 1>&6
  2588. else
  2589.   ac_cv_c_inline=no
  2590. for ac_kw in inline __inline__ __inline; do
  2591.   cat > conftest.$ac_ext <<EOF
  2592. #line 2593 "configure"
  2593. #include "confdefs.h"
  2594.  
  2595. int main() { return 0; }
  2596. int t() {
  2597. } $ac_kw foo() {
  2598. ; return 0; }
  2599. EOF
  2600. if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2601.   rm -rf conftest*
  2602.   ac_cv_c_inline=$ac_kw; break
  2603. fi
  2604. rm -f conftest*
  2605.  
  2606. done
  2607.  
  2608. fi
  2609.  
  2610. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2611. case "$ac_cv_c_inline" in
  2612.   inline | yes) ;;
  2613.   no) cat >> confdefs.h <<\EOF
  2614. #define inline 
  2615. EOF
  2616.  ;;
  2617.   *)  cat >> confdefs.h <<EOF
  2618. #define inline $ac_cv_c_inline
  2619. EOF
  2620.  ;;
  2621. esac
  2622.  
  2623. for ac_func in valloc getpagesize
  2624. do
  2625. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2626. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2627.   echo $ac_n "(cached) $ac_c" 1>&6
  2628. else
  2629.   cat > conftest.$ac_ext <<EOF
  2630. #line 2631 "configure"
  2631. #include "confdefs.h"
  2632. /* System header to define __stub macros and hopefully few prototypes,
  2633.     which can conflict with char $ac_func(); below.  */
  2634. #include <assert.h>
  2635. /* Override any gcc2 internal prototype to avoid an error.  */
  2636. /* We use char because int might match the return type of a gcc2
  2637.     builtin and then its argument prototype would still apply.  */
  2638. char $ac_func();
  2639.  
  2640. int main() { return 0; }
  2641. int t() {
  2642.  
  2643. /* The GNU C library defines this for functions which it implements
  2644.     to always fail with ENOSYS.  Some functions are actually named
  2645.     something starting with __ and the normal name is an alias.  */
  2646. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2647. choke me
  2648. #else
  2649. $ac_func();
  2650. #endif
  2651.  
  2652. ; return 0; }
  2653. EOF
  2654. if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2655.   rm -rf conftest*
  2656.   eval "ac_cv_func_$ac_func=yes"
  2657. else
  2658.   rm -rf conftest*
  2659.   eval "ac_cv_func_$ac_func=no"
  2660. fi
  2661. rm -f conftest*
  2662.  
  2663. fi
  2664. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2665.   echo "$ac_t""yes" 1>&6
  2666.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2667.   cat >> confdefs.h <<EOF
  2668. #define $ac_tr_func 1
  2669. EOF
  2670.  
  2671. else
  2672.   echo "$ac_t""no" 1>&6
  2673. fi
  2674. done
  2675.  
  2676. echo $ac_n "checking for working mmap""... $ac_c" 1>&6
  2677. if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
  2678.   echo $ac_n "(cached) $ac_c" 1>&6
  2679. else
  2680.   if test "$cross_compiling" = yes; then
  2681.   ac_cv_func_mmap=no
  2682. else
  2683. cat > conftest.$ac_ext <<EOF
  2684. #line 2685 "configure"
  2685. #include "confdefs.h"
  2686.  
  2687. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2688. #include <sys/types.h>
  2689. #include <fcntl.h>
  2690. #include <sys/mman.h>
  2691.  
  2692. #ifndef HAVE_GETPAGESIZE
  2693. # include <sys/param.h>
  2694. # ifdef EXEC_PAGESIZE
  2695. #  define getpagesize() EXEC_PAGESIZE
  2696. # else
  2697. #  ifdef NBPG
  2698. #   define getpagesize() NBPG * CLSIZE
  2699. #   ifndef CLSIZE
  2700. #    define CLSIZE 1
  2701. #   endif
  2702. #  else
  2703. #   ifdef NBPC
  2704. #    define getpagesize() NBPC
  2705. #   else
  2706. #    define getpagesize() PAGESIZE /* SVR4 */
  2707. #   endif
  2708. #  endif
  2709. # endif
  2710. #endif
  2711.  
  2712. #ifndef HAVE_VALLOC
  2713. # define valloc malloc
  2714. #endif
  2715.  
  2716. #ifdef __cplusplus
  2717. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  2718. #else
  2719. char *valloc(), *malloc();
  2720. #endif
  2721.  
  2722. int
  2723. main()
  2724. {
  2725.   char *buf1, *buf2, *buf3;
  2726.   int i = getpagesize(), j;
  2727.   int i2 = i * 2;
  2728.   int fd;
  2729.  
  2730.   buf1 = (char *)valloc(i2);
  2731.   buf2 = (char *)valloc(i);
  2732.   buf3 = (char *)malloc(i2);
  2733.   for (j = 0; j < i2; ++j)
  2734.     *(buf1 + j) = rand();
  2735.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  2736.   write(fd, buf1, i2);
  2737.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  2738.   for (j = 0; j < i; ++j)
  2739.     if (*(buf1 + j) != *(buf2 + j))
  2740.       exit(1);
  2741.   lseek(fd, (long)i, 0);
  2742.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  2743.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  2744.   lseek(fd, (long)0, 0);
  2745.   read(fd, buf3, i2);
  2746.   for (j = 0; j < i2; ++j)
  2747.     if (*(buf1 + j) != *(buf3 + j))
  2748.       exit(1);
  2749.   exit(0);
  2750. }
  2751.  
  2752. EOF
  2753. { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  2754. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2755.   ac_cv_func_mmap=yes
  2756. else
  2757.   ac_cv_func_mmap=no
  2758. fi
  2759. fi
  2760. rm -fr conftest*
  2761. fi
  2762.  
  2763. echo "$ac_t""$ac_cv_func_mmap" 1>&6
  2764. if test $ac_cv_func_mmap = yes; then
  2765.   cat >> confdefs.h <<\EOF
  2766. #define HAVE_MMAP 1
  2767. EOF
  2768.  
  2769. fi
  2770.  
  2771.                               
  2772.    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
  2773. unistd.h values.h
  2774. do
  2775. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  2776. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2777. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2778.   echo $ac_n "(cached) $ac_c" 1>&6
  2779. else
  2780.   cat > conftest.$ac_ext <<EOF
  2781. #line 2782 "configure"
  2782. #include "confdefs.h"
  2783. #include <$ac_hdr>
  2784. EOF
  2785. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2786. { (eval echo configure:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2787. ac_err=`grep -v '^ *+' conftest.out`
  2788. if test -z "$ac_err"; then
  2789.   rm -rf conftest*
  2790.   eval "ac_cv_header_$ac_safe=yes"
  2791. else
  2792.   echo "$ac_err" >&5
  2793.   rm -rf conftest*
  2794.   eval "ac_cv_header_$ac_safe=no"
  2795. fi
  2796. rm -f conftest*
  2797. fi
  2798. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2799.   echo "$ac_t""yes" 1>&6
  2800.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
  2801.   cat >> confdefs.h <<EOF
  2802. #define $ac_tr_hdr 1
  2803. EOF
  2804.  
  2805. else
  2806.   echo "$ac_t""no" 1>&6
  2807. fi
  2808. done
  2809.  
  2810.    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
  2811. __argz_count __argz_stringify __argz_next
  2812. do
  2813. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2814. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2815.   echo $ac_n "(cached) $ac_c" 1>&6
  2816. else
  2817.   cat > conftest.$ac_ext <<EOF
  2818. #line 2819 "configure"
  2819. #include "confdefs.h"
  2820. /* System header to define __stub macros and hopefully few prototypes,
  2821.     which can conflict with char $ac_func(); below.  */
  2822. #include <assert.h>
  2823. /* Override any gcc2 internal prototype to avoid an error.  */
  2824. /* We use char because int might match the return type of a gcc2
  2825.     builtin and then its argument prototype would still apply.  */
  2826. char $ac_func();
  2827.  
  2828. int main() { return 0; }
  2829. int t() {
  2830.  
  2831. /* The GNU C library defines this for functions which it implements
  2832.     to always fail with ENOSYS.  Some functions are actually named
  2833.     something starting with __ and the normal name is an alias.  */
  2834. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2835. choke me
  2836. #else
  2837. $ac_func();
  2838. #endif
  2839.  
  2840. ; return 0; }
  2841. EOF
  2842. if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2843.   rm -rf conftest*
  2844.   eval "ac_cv_func_$ac_func=yes"
  2845. else
  2846.   rm -rf conftest*
  2847.   eval "ac_cv_func_$ac_func=no"
  2848. fi
  2849. rm -f conftest*
  2850.  
  2851. fi
  2852. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2853.   echo "$ac_t""yes" 1>&6
  2854.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2855.   cat >> confdefs.h <<EOF
  2856. #define $ac_tr_func 1
  2857. EOF
  2858.  
  2859. else
  2860.   echo "$ac_t""no" 1>&6
  2861. fi
  2862. done
  2863.  
  2864.  
  2865.    if test "${ac_cv_func_stpcpy+set}" != "set"; then
  2866.      for ac_func in stpcpy
  2867. do
  2868. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2869. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2870.   echo $ac_n "(cached) $ac_c" 1>&6
  2871. else
  2872.   cat > conftest.$ac_ext <<EOF
  2873. #line 2874 "configure"
  2874. #include "confdefs.h"
  2875. /* System header to define __stub macros and hopefully few prototypes,
  2876.     which can conflict with char $ac_func(); below.  */
  2877. #include <assert.h>
  2878. /* Override any gcc2 internal prototype to avoid an error.  */
  2879. /* We use char because int might match the return type of a gcc2
  2880.     builtin and then its argument prototype would still apply.  */
  2881. char $ac_func();
  2882.  
  2883. int main() { return 0; }
  2884. int t() {
  2885.  
  2886. /* The GNU C library defines this for functions which it implements
  2887.     to always fail with ENOSYS.  Some functions are actually named
  2888.     something starting with __ and the normal name is an alias.  */
  2889. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2890. choke me
  2891. #else
  2892. $ac_func();
  2893. #endif
  2894.  
  2895. ; return 0; }
  2896. EOF
  2897. if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2898.   rm -rf conftest*
  2899.   eval "ac_cv_func_$ac_func=yes"
  2900. else
  2901.   rm -rf conftest*
  2902.   eval "ac_cv_func_$ac_func=no"
  2903. fi
  2904. rm -f conftest*
  2905.  
  2906. fi
  2907. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2908.   echo "$ac_t""yes" 1>&6
  2909.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2910.   cat >> confdefs.h <<EOF
  2911. #define $ac_tr_func 1
  2912. EOF
  2913.  
  2914. else
  2915.   echo "$ac_t""no" 1>&6
  2916. fi
  2917. done
  2918.  
  2919.    fi
  2920.    if test "${ac_cv_func_stpcpy}" = "yes"; then
  2921.      cat >> confdefs.h <<\EOF
  2922. #define HAVE_STPCPY 1
  2923. EOF
  2924.  
  2925.    fi
  2926.  
  2927.    if test $ac_cv_header_locale_h = yes; then
  2928.     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  2929. if eval "test \"`echo '$''{'ud_cv_val_LC_MESSAGES'+set}'`\" = set"; then
  2930.   echo $ac_n "(cached) $ac_c" 1>&6
  2931. else
  2932.   cat > conftest.$ac_ext <<EOF
  2933. #line 2934 "configure"
  2934. #include "confdefs.h"
  2935. #include <locale.h>
  2936. int main() { return 0; }
  2937. int t() {
  2938. return LC_MESSAGES
  2939. ; return 0; }
  2940. EOF
  2941. if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  2942.   rm -rf conftest*
  2943.   ud_cv_val_LC_MESSAGES=yes
  2944. else
  2945.   rm -rf conftest*
  2946.   ud_cv_val_LC_MESSAGES=no
  2947. fi
  2948. rm -f conftest*
  2949.  
  2950. fi
  2951.  
  2952. echo "$ac_t""$ud_cv_val_LC_MESSAGES" 1>&6
  2953.     if test $ud_cv_val_LC_MESSAGES = yes; then
  2954.       cat >> confdefs.h <<\EOF
  2955. #define HAVE_LC_MESSAGES 1
  2956. EOF
  2957.  
  2958.     fi
  2959.   fi
  2960.    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
  2961.         # Check whether --enable-nls or --disable-nls was given.
  2962. if test "${enable_nls+set}" = set; then
  2963.   enableval="$enable_nls"
  2964.   USE_NLS=$enableval
  2965. else
  2966.   USE_NLS=yes
  2967. fi
  2968.  
  2969.     echo "$ac_t""$USE_NLS" 1>&6
  2970.     
  2971.  
  2972.     USE_INCLUDED_LIBINTL=no
  2973.  
  2974.         if test "$USE_NLS" = "yes"; then
  2975.       cat >> confdefs.h <<\EOF
  2976. #define ENABLE_NLS 1
  2977. EOF
  2978.  
  2979.       echo $ac_n "checking for explicitly using GNU gettext""... $ac_c" 1>&6
  2980.       # Check whether --with-included-gettext or --without-included-gettext was given.
  2981. if test "${with_included_gettext+set}" = set; then
  2982.   withval="$with_included_gettext"
  2983.   nls_cv_force_use_gnu_gettext=$withval
  2984. else
  2985.   nls_cv_force_use_gnu_gettext=no
  2986. fi
  2987.  
  2988.       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
  2989.  
  2990.       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  2991.       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  2992.                                 nls_cv_header_intl=
  2993.     nls_cv_header_libgt=
  2994.     CATOBJEXT=NONE
  2995.  
  2996.     ac_safe=`echo "libintl.h" | tr './\055' '___'`
  2997. echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
  2998. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2999.   echo $ac_n "(cached) $ac_c" 1>&6
  3000. else
  3001.   cat > conftest.$ac_ext <<EOF
  3002. #line 3003 "configure"
  3003. #include "confdefs.h"
  3004. #include <libintl.h>
  3005. EOF
  3006. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3007. { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3008. ac_err=`grep -v '^ *+' conftest.out`
  3009. if test -z "$ac_err"; then
  3010.   rm -rf conftest*
  3011.   eval "ac_cv_header_$ac_safe=yes"
  3012. else
  3013.   echo "$ac_err" >&5
  3014.   rm -rf conftest*
  3015.   eval "ac_cv_header_$ac_safe=no"
  3016. fi
  3017. rm -f conftest*
  3018. fi
  3019. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3020.   echo "$ac_t""yes" 1>&6
  3021.   echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  3022. ac_lib_var=`echo intl'_'bindtextdomain | tr './+\055' '__p_'`
  3023. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3024.   echo $ac_n "(cached) $ac_c" 1>&6
  3025. else
  3026.   ac_save_LIBS="$LIBS"
  3027. LIBS="-lintl  $LIBS"
  3028. cat > conftest.$ac_ext <<EOF
  3029. #line 3030 "configure"
  3030. #include "confdefs.h"
  3031. /* Override any gcc2 internal prototype to avoid an error.  */
  3032. /* We use char because int might match the return type of a gcc2
  3033.     builtin and then its argument prototype would still apply.  */
  3034. char bindtextdomain();
  3035.  
  3036. int main() { return 0; }
  3037. int t() {
  3038. bindtextdomain()
  3039. ; return 0; }
  3040. EOF
  3041. if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3042.   rm -rf conftest*
  3043.   eval "ac_cv_lib_$ac_lib_var=yes"
  3044. else
  3045.   rm -rf conftest*
  3046.   eval "ac_cv_lib_$ac_lib_var=no"
  3047. fi
  3048. rm -f conftest*
  3049. LIBS="$ac_save_LIBS"
  3050.  
  3051. fi
  3052. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3053.   echo "$ac_t""yes" 1>&6
  3054.     ac_tr_lib=HAVE_LIB`echo intl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3055.   cat >> confdefs.h <<EOF
  3056. #define $ac_tr_lib 1
  3057. EOF
  3058.  
  3059.   LIBS="-lintl $LIBS"
  3060.  
  3061. else
  3062.   echo "$ac_t""no" 1>&6
  3063. fi
  3064.  
  3065.        echo $ac_n "checking for gettext""... $ac_c" 1>&6
  3066. if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
  3067.   echo $ac_n "(cached) $ac_c" 1>&6
  3068. else
  3069.   cat > conftest.$ac_ext <<EOF
  3070. #line 3071 "configure"
  3071. #include "confdefs.h"
  3072. /* System header to define __stub macros and hopefully few prototypes,
  3073.     which can conflict with char gettext(); below.  */
  3074. #include <assert.h>
  3075. /* Override any gcc2 internal prototype to avoid an error.  */
  3076. /* We use char because int might match the return type of a gcc2
  3077.     builtin and then its argument prototype would still apply.  */
  3078. char gettext();
  3079.  
  3080. int main() { return 0; }
  3081. int t() {
  3082.  
  3083. /* The GNU C library defines this for functions which it implements
  3084.     to always fail with ENOSYS.  Some functions are actually named
  3085.     something starting with __ and the normal name is an alias.  */
  3086. #if defined (__stub_gettext) || defined (__stub___gettext)
  3087. choke me
  3088. #else
  3089. gettext();
  3090. #endif
  3091.  
  3092. ; return 0; }
  3093. EOF
  3094. if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3095.   rm -rf conftest*
  3096.   eval "ac_cv_func_gettext=yes"
  3097. else
  3098.   rm -rf conftest*
  3099.   eval "ac_cv_func_gettext=no"
  3100. fi
  3101. rm -f conftest*
  3102.  
  3103. fi
  3104. if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
  3105.   echo "$ac_t""yes" 1>&6
  3106.   cat >> confdefs.h <<\EOF
  3107. #define HAVE_GETTEXT 1
  3108. EOF
  3109.  
  3110.           # Extract the first word of "msgfmt", so it can be a program name with args.
  3111. set dummy msgfmt; ac_word=$2
  3112. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3113. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3114.   echo $ac_n "(cached) $ac_c" 1>&6
  3115. else
  3116.   case "$MSGFMT" in
  3117.   /*)
  3118.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3119.   ;;
  3120.   *)
  3121.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3122.   for ac_dir in $PATH; do
  3123.     test -z "$ac_dir" && ac_dir=.
  3124.     if test -f $ac_dir/$ac_word; then
  3125.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3126.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3127.     break
  3128.       fi
  3129.     fi
  3130.   done
  3131.   IFS="$ac_save_ifs"
  3132.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
  3133.   ;;
  3134. esac
  3135. fi
  3136. MSGFMT="$ac_cv_path_MSGFMT"
  3137. if test -n "$MSGFMT"; then
  3138.   echo "$ac_t""$MSGFMT" 1>&6
  3139. else
  3140.   echo "$ac_t""no" 1>&6
  3141. fi
  3142.           if test "$MSGFMT" != "no"; then
  3143.         for ac_func in dcgettext
  3144. do
  3145. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3146. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3147.   echo $ac_n "(cached) $ac_c" 1>&6
  3148. else
  3149.   cat > conftest.$ac_ext <<EOF
  3150. #line 3151 "configure"
  3151. #include "confdefs.h"
  3152. /* System header to define __stub macros and hopefully few prototypes,
  3153.     which can conflict with char $ac_func(); below.  */
  3154. #include <assert.h>
  3155. /* Override any gcc2 internal prototype to avoid an error.  */
  3156. /* We use char because int might match the return type of a gcc2
  3157.     builtin and then its argument prototype would still apply.  */
  3158. char $ac_func();
  3159.  
  3160. int main() { return 0; }
  3161. int t() {
  3162.  
  3163. /* The GNU C library defines this for functions which it implements
  3164.     to always fail with ENOSYS.  Some functions are actually named
  3165.     something starting with __ and the normal name is an alias.  */
  3166. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3167. choke me
  3168. #else
  3169. $ac_func();
  3170. #endif
  3171.  
  3172. ; return 0; }
  3173. EOF
  3174. if { (eval echo configure:3175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3175.   rm -rf conftest*
  3176.   eval "ac_cv_func_$ac_func=yes"
  3177. else
  3178.   rm -rf conftest*
  3179.   eval "ac_cv_func_$ac_func=no"
  3180. fi
  3181. rm -f conftest*
  3182.  
  3183. fi
  3184. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3185.   echo "$ac_t""yes" 1>&6
  3186.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3187.   cat >> confdefs.h <<EOF
  3188. #define $ac_tr_func 1
  3189. EOF
  3190.  
  3191. else
  3192.   echo "$ac_t""no" 1>&6
  3193. fi
  3194. done
  3195.  
  3196.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3197. set dummy gmsgfmt; ac_word=$2
  3198. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3199. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3200.   echo $ac_n "(cached) $ac_c" 1>&6
  3201. else
  3202.   case "$GMSGFMT" in
  3203.   /*)
  3204.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3205.   ;;
  3206.   *)
  3207.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3208.   for ac_dir in $PATH; do
  3209.     test -z "$ac_dir" && ac_dir=.
  3210.     if test -f $ac_dir/$ac_word; then
  3211.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3212.       break
  3213.     fi
  3214.   done
  3215.   IFS="$ac_save_ifs"
  3216.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3217.   ;;
  3218. esac
  3219. fi
  3220. GMSGFMT="$ac_cv_path_GMSGFMT"
  3221. if test -n "$GMSGFMT"; then
  3222.   echo "$ac_t""$GMSGFMT" 1>&6
  3223. else
  3224.   echo "$ac_t""no" 1>&6
  3225. fi
  3226.  
  3227.         # Extract the first word of "xgettext", so it can be a program name with args.
  3228. set dummy xgettext; ac_word=$2
  3229. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3230. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3231.   echo $ac_n "(cached) $ac_c" 1>&6
  3232. else
  3233.   case "$XGETTEXT" in
  3234.   /*)
  3235.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3236.   ;;
  3237.   *)
  3238.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3239.   for ac_dir in $PATH; do
  3240.     test -z "$ac_dir" && ac_dir=.
  3241.     if test -f $ac_dir/$ac_word; then
  3242.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3243.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3244.     break
  3245.       fi
  3246.     fi
  3247.   done
  3248.   IFS="$ac_save_ifs"
  3249.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3250.   ;;
  3251. esac
  3252. fi
  3253. XGETTEXT="$ac_cv_path_XGETTEXT"
  3254. if test -n "$XGETTEXT"; then
  3255.   echo "$ac_t""$XGETTEXT" 1>&6
  3256. else
  3257.   echo "$ac_t""no" 1>&6
  3258. fi
  3259.  
  3260.         cat > conftest.$ac_ext <<EOF
  3261. #line 3262 "configure"
  3262. #include "confdefs.h"
  3263.  
  3264. int main() { return 0; }
  3265. int t() {
  3266. extern int _nl_msg_cat_cntr;
  3267.                    return _nl_msg_cat_cntr
  3268. ; return 0; }
  3269. EOF
  3270. if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3271.   rm -rf conftest*
  3272.   CATOBJEXT=.gmo
  3273.            DATADIRNAME=share
  3274. else
  3275.   rm -rf conftest*
  3276.   CATOBJEXT=.mo
  3277.            DATADIRNAME=lib
  3278. fi
  3279. rm -f conftest*
  3280.  
  3281.         INSTOBJEXT=.mo
  3282.           fi
  3283. else
  3284.   echo "$ac_t""no" 1>&6
  3285. fi
  3286.  
  3287. else
  3288.   echo "$ac_t""no" 1>&6
  3289. fi
  3290.  
  3291.  
  3292.         if test "$CATOBJEXT" = "NONE"; then
  3293.       echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
  3294.       # Check whether --with-catgets or --without-catgets was given.
  3295. if test "${with_catgets+set}" = set; then
  3296.   withval="$with_catgets"
  3297.   nls_cv_use_catgets=$withval
  3298. else
  3299.   nls_cv_use_catgets=no
  3300. fi
  3301.  
  3302.       echo "$ac_t""$nls_cv_use_catgets" 1>&6
  3303.  
  3304.       if test "$nls_cv_use_catgets" = "yes"; then
  3305.                 echo $ac_n "checking for -li""... $ac_c" 1>&6
  3306. ac_lib_var=`echo i'_'main | tr './+\055' '__p_'`
  3307. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3308.   echo $ac_n "(cached) $ac_c" 1>&6
  3309. else
  3310.   ac_save_LIBS="$LIBS"
  3311. LIBS="-li  $LIBS"
  3312. cat > conftest.$ac_ext <<EOF
  3313. #line 3314 "configure"
  3314. #include "confdefs.h"
  3315.  
  3316. int main() { return 0; }
  3317. int t() {
  3318. main()
  3319. ; return 0; }
  3320. EOF
  3321. if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3322.   rm -rf conftest*
  3323.   eval "ac_cv_lib_$ac_lib_var=yes"
  3324. else
  3325.   rm -rf conftest*
  3326.   eval "ac_cv_lib_$ac_lib_var=no"
  3327. fi
  3328. rm -f conftest*
  3329. LIBS="$ac_save_LIBS"
  3330.  
  3331. fi
  3332. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3333.   echo "$ac_t""yes" 1>&6
  3334.     ac_tr_lib=HAVE_LIB`echo i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  3335.   cat >> confdefs.h <<EOF
  3336. #define $ac_tr_lib 1
  3337. EOF
  3338.  
  3339.   LIBS="-li $LIBS"
  3340.  
  3341. else
  3342.   echo "$ac_t""no" 1>&6
  3343. fi
  3344.  
  3345.         echo $ac_n "checking for catgets""... $ac_c" 1>&6
  3346. if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
  3347.   echo $ac_n "(cached) $ac_c" 1>&6
  3348. else
  3349.   cat > conftest.$ac_ext <<EOF
  3350. #line 3351 "configure"
  3351. #include "confdefs.h"
  3352. /* System header to define __stub macros and hopefully few prototypes,
  3353.     which can conflict with char catgets(); below.  */
  3354. #include <assert.h>
  3355. /* Override any gcc2 internal prototype to avoid an error.  */
  3356. /* We use char because int might match the return type of a gcc2
  3357.     builtin and then its argument prototype would still apply.  */
  3358. char catgets();
  3359.  
  3360. int main() { return 0; }
  3361. int t() {
  3362.  
  3363. /* The GNU C library defines this for functions which it implements
  3364.     to always fail with ENOSYS.  Some functions are actually named
  3365.     something starting with __ and the normal name is an alias.  */
  3366. #if defined (__stub_catgets) || defined (__stub___catgets)
  3367. choke me
  3368. #else
  3369. catgets();
  3370. #endif
  3371.  
  3372. ; return 0; }
  3373. EOF
  3374. if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  3375.   rm -rf conftest*
  3376.   eval "ac_cv_func_catgets=yes"
  3377. else
  3378.   rm -rf conftest*
  3379.   eval "ac_cv_func_catgets=no"
  3380. fi
  3381. rm -f conftest*
  3382.  
  3383. fi
  3384. if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
  3385.   echo "$ac_t""yes" 1>&6
  3386.   cat >> confdefs.h <<\EOF
  3387. #define HAVE_CATGETS 1
  3388. EOF
  3389.  
  3390.            INTLOBJS="\$(CATOBJS)"
  3391.            # Extract the first word of "gencat", so it can be a program name with args.
  3392. set dummy gencat; ac_word=$2
  3393. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3394. if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
  3395.   echo $ac_n "(cached) $ac_c" 1>&6
  3396. else
  3397.   case "$GENCAT" in
  3398.   /*)
  3399.   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
  3400.   ;;
  3401.   *)
  3402.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3403.   for ac_dir in $PATH; do
  3404.     test -z "$ac_dir" && ac_dir=.
  3405.     if test -f $ac_dir/$ac_word; then
  3406.       ac_cv_path_GENCAT="$ac_dir/$ac_word"
  3407.       break
  3408.     fi
  3409.   done
  3410.   IFS="$ac_save_ifs"
  3411.   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
  3412.   ;;
  3413. esac
  3414. fi
  3415. GENCAT="$ac_cv_path_GENCAT"
  3416. if test -n "$GENCAT"; then
  3417.   echo "$ac_t""$GENCAT" 1>&6
  3418. else
  3419.   echo "$ac_t""no" 1>&6
  3420. fi
  3421.            if test "$GENCAT" != "no"; then
  3422.          # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3423. set dummy gmsgfmt; ac_word=$2
  3424. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3425. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3426.   echo $ac_n "(cached) $ac_c" 1>&6
  3427. else
  3428.   case "$GMSGFMT" in
  3429.   /*)
  3430.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3431.   ;;
  3432.   *)
  3433.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3434.   for ac_dir in $PATH; do
  3435.     test -z "$ac_dir" && ac_dir=.
  3436.     if test -f $ac_dir/$ac_word; then
  3437.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3438.       break
  3439.     fi
  3440.   done
  3441.   IFS="$ac_save_ifs"
  3442.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3443.   ;;
  3444. esac
  3445. fi
  3446. GMSGFMT="$ac_cv_path_GMSGFMT"
  3447. if test -n "$GMSGFMT"; then
  3448.   echo "$ac_t""$GMSGFMT" 1>&6
  3449. else
  3450.   echo "$ac_t""no" 1>&6
  3451. fi
  3452.  
  3453.          if test "$GMSGFMT" = "no"; then
  3454.            # Extract the first word of "msgfmt", so it can be a program name with args.
  3455. set dummy msgfmt; ac_word=$2
  3456. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3457. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3458.   echo $ac_n "(cached) $ac_c" 1>&6
  3459. else
  3460.   case "$GMSGFMT" in
  3461.   /*)
  3462.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3463.   ;;
  3464.   *)
  3465.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3466.   for ac_dir in $PATH; do
  3467.     test -z "$ac_dir" && ac_dir=.
  3468.     if test -f $ac_dir/$ac_word; then
  3469.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3470.     ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3471.     break
  3472.       fi
  3473.     fi
  3474.   done
  3475.   IFS="$ac_save_ifs"
  3476.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
  3477.   ;;
  3478. esac
  3479. fi
  3480. GMSGFMT="$ac_cv_path_GMSGFMT"
  3481. if test -n "$GMSGFMT"; then
  3482.   echo "$ac_t""$GMSGFMT" 1>&6
  3483. else
  3484.   echo "$ac_t""no" 1>&6
  3485. fi
  3486.  
  3487.          fi
  3488.          # Extract the first word of "xgettext", so it can be a program name with args.
  3489. set dummy xgettext; ac_word=$2
  3490. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3491. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3492.   echo $ac_n "(cached) $ac_c" 1>&6
  3493. else
  3494.   case "$XGETTEXT" in
  3495.   /*)
  3496.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3497.   ;;
  3498.   *)
  3499.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3500.   for ac_dir in $PATH; do
  3501.     test -z "$ac_dir" && ac_dir=.
  3502.     if test -f $ac_dir/$ac_word; then
  3503.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3504.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3505.     break
  3506.       fi
  3507.     fi
  3508.   done
  3509.   IFS="$ac_save_ifs"
  3510.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3511.   ;;
  3512. esac
  3513. fi
  3514. XGETTEXT="$ac_cv_path_XGETTEXT"
  3515. if test -n "$XGETTEXT"; then
  3516.   echo "$ac_t""$XGETTEXT" 1>&6
  3517. else
  3518.   echo "$ac_t""no" 1>&6
  3519. fi
  3520.  
  3521.          USE_INCLUDED_LIBINTL=yes
  3522.          CATOBJEXT=.cat
  3523.          INSTOBJEXT=.cat
  3524.          DATADIRNAME=lib
  3525.          INTLDEPS="../intl/libintl.a"
  3526.          INTLLIBS=$INTLDEPS
  3527.          LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3528.          nls_cv_header_intl=intl/libintl.h
  3529.          nls_cv_header_libgt=intl/libgettext.h
  3530.            fi
  3531. else
  3532.   echo "$ac_t""no" 1>&6
  3533. fi
  3534.  
  3535.       fi
  3536.         fi
  3537.  
  3538.         if test "$CATOBJEXT" = "NONE"; then
  3539.                   nls_cv_use_gnu_gettext=yes
  3540.         fi
  3541.       fi
  3542.  
  3543.       if test "$nls_cv_use_gnu_gettext" = "yes"; then
  3544.                 INTLOBJS="\$(GETTOBJS)"
  3545.         # Extract the first word of "msgfmt", so it can be a program name with args.
  3546. set dummy msgfmt; ac_word=$2
  3547. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3548. if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
  3549.   echo $ac_n "(cached) $ac_c" 1>&6
  3550. else
  3551.   case "$MSGFMT" in
  3552.   /*)
  3553.   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  3554.   ;;
  3555.   *)
  3556.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3557.   for ac_dir in $PATH; do
  3558.     test -z "$ac_dir" && ac_dir=.
  3559.     if test -f $ac_dir/$ac_word; then
  3560.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
  3561.     ac_cv_path_MSGFMT="$ac_dir/$ac_word"
  3562.     break
  3563.       fi
  3564.     fi
  3565.   done
  3566.   IFS="$ac_save_ifs"
  3567.   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
  3568.   ;;
  3569. esac
  3570. fi
  3571. MSGFMT="$ac_cv_path_MSGFMT"
  3572. if test -n "$MSGFMT"; then
  3573.   echo "$ac_t""$MSGFMT" 1>&6
  3574. else
  3575.   echo "$ac_t""no" 1>&6
  3576. fi
  3577.  
  3578.         # Extract the first word of "gmsgfmt", so it can be a program name with args.
  3579. set dummy gmsgfmt; ac_word=$2
  3580. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3581. if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
  3582.   echo $ac_n "(cached) $ac_c" 1>&6
  3583. else
  3584.   case "$GMSGFMT" in
  3585.   /*)
  3586.   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  3587.   ;;
  3588.   *)
  3589.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3590.   for ac_dir in $PATH; do
  3591.     test -z "$ac_dir" && ac_dir=.
  3592.     if test -f $ac_dir/$ac_word; then
  3593.       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
  3594.       break
  3595.     fi
  3596.   done
  3597.   IFS="$ac_save_ifs"
  3598.   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  3599.   ;;
  3600. esac
  3601. fi
  3602. GMSGFMT="$ac_cv_path_GMSGFMT"
  3603. if test -n "$GMSGFMT"; then
  3604.   echo "$ac_t""$GMSGFMT" 1>&6
  3605. else
  3606.   echo "$ac_t""no" 1>&6
  3607. fi
  3608.  
  3609.         # Extract the first word of "xgettext", so it can be a program name with args.
  3610. set dummy xgettext; ac_word=$2
  3611. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3612. if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
  3613.   echo $ac_n "(cached) $ac_c" 1>&6
  3614. else
  3615.   case "$XGETTEXT" in
  3616.   /*)
  3617.   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  3618.   ;;
  3619.   *)
  3620.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3621.   for ac_dir in $PATH; do
  3622.     test -z "$ac_dir" && ac_dir=.
  3623.     if test -f $ac_dir/$ac_word; then
  3624.       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
  3625.     ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
  3626.     break
  3627.       fi
  3628.     fi
  3629.   done
  3630.   IFS="$ac_save_ifs"
  3631.   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  3632.   ;;
  3633. esac
  3634. fi
  3635. XGETTEXT="$ac_cv_path_XGETTEXT"
  3636. if test -n "$XGETTEXT"; then
  3637.   echo "$ac_t""$XGETTEXT" 1>&6
  3638. else
  3639.   echo "$ac_t""no" 1>&6
  3640. fi
  3641.  
  3642.         
  3643.     USE_INCLUDED_LIBINTL=yes
  3644.         CATOBJEXT=.gmo
  3645.         INSTOBJEXT=.mo
  3646.         DATADIRNAME=share
  3647.     INTLDEPS="../intl/libintl.a"
  3648.     INTLLIBS=$INTLDEPS
  3649.     LIBS=`echo $LIBS | sed -e 's/-lintl//'`
  3650.         nls_cv_header_intl=intl/libintl.h
  3651.         nls_cv_header_libgt=intl/libgettext.h
  3652.       fi
  3653.  
  3654.             if test "$XGETTEXT" != ":"; then
  3655.             if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  3656.       : ;
  3657.     else
  3658.       echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
  3659.       XGETTEXT=":"
  3660.     fi
  3661.       fi
  3662.  
  3663.       # We need to process the po/ directory.
  3664.       POSUB=po
  3665.     else
  3666.       DATADIRNAME=share
  3667.       nls_cv_header_intl=intl/libintl.h
  3668.       nls_cv_header_libgt=intl/libgettext.h
  3669.     fi
  3670.  
  3671.     # If this is used in GNU gettext we have to set USE_NLS to `yes'
  3672.     # because some of the sources are only built for this goal.
  3673.     if test "$PACKAGE" = gettext; then
  3674.       USE_NLS=yes
  3675.       USE_INCLUDED_LIBINTL=yes
  3676.     fi
  3677.  
  3678.                 for lang in $ALL_LINGUAS; do
  3679.       GMOFILES="$GMOFILES $lang.gmo"
  3680.       POFILES="$POFILES $lang.po"
  3681.     done
  3682.  
  3683.         
  3684.     
  3685.     
  3686.     
  3687.     
  3688.     
  3689.     
  3690.     
  3691.     
  3692.     
  3693.     
  3694.   
  3695.  
  3696.    if test "x$CATOBJEXT" != "x"; then
  3697.      if test "x$ALL_LINGUAS" = "x"; then
  3698.        LINGUAS=
  3699.      else
  3700.        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
  3701.        NEW_LINGUAS=
  3702.        for lang in ${LINGUAS=$ALL_LINGUAS}; do
  3703.          case "$ALL_LINGUAS" in
  3704.           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  3705.          esac
  3706.        done
  3707.        LINGUAS=$NEW_LINGUAS
  3708.        echo "$ac_t""$LINGUAS" 1>&6
  3709.      fi
  3710.  
  3711.           if test -n "$LINGUAS"; then
  3712.        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  3713.      fi
  3714.    fi
  3715.  
  3716.             test -d intl || mkdir intl
  3717.    if test "$CATOBJEXT" = ".cat"; then
  3718.      ac_safe=`echo "linux/version.h" | tr './\055' '___'`
  3719. echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
  3720. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3721.   echo $ac_n "(cached) $ac_c" 1>&6
  3722. else
  3723.   cat > conftest.$ac_ext <<EOF
  3724. #line 3725 "configure"
  3725. #include "confdefs.h"
  3726. #include <linux/version.h>
  3727. EOF
  3728. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3729. { (eval echo configure:3730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  3730. ac_err=`grep -v '^ *+' conftest.out`
  3731. if test -z "$ac_err"; then
  3732.   rm -rf conftest*
  3733.   eval "ac_cv_header_$ac_safe=yes"
  3734. else
  3735.   echo "$ac_err" >&5
  3736.   rm -rf conftest*
  3737.   eval "ac_cv_header_$ac_safe=no"
  3738. fi
  3739. rm -f conftest*
  3740. fi
  3741. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3742.   echo "$ac_t""yes" 1>&6
  3743.   msgformat=linux
  3744. else
  3745.   echo "$ac_t""no" 1>&6
  3746. msgformat=xopen
  3747. fi
  3748.  
  3749.  
  3750.                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
  3751.    fi
  3752.       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
  3753.      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
  3754.  
  3755.             if test "$PACKAGE" = "gettext"; then
  3756.      GT_NO="#NO#"
  3757.      GT_YES=
  3758.    else
  3759.      GT_NO=
  3760.      GT_YES="#YES#"
  3761.    fi
  3762.    
  3763.    
  3764.  
  3765.             MKINSTALLDIRS=
  3766.    if test $ac_aux_dir; then
  3767.      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  3768.    fi
  3769.    if test -z $MKINSTALLDIRS; then
  3770.      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  3771.    fi
  3772.    
  3773.  
  3774.          test -d po || mkdir po
  3775.    if test "x$srcdir" != "x."; then
  3776.      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  3777.        posrcprefix="$srcdir/"
  3778.      else
  3779.        posrcprefix="../$srcdir/"
  3780.      fi
  3781.    else
  3782.      posrcprefix="../"
  3783.    fi
  3784.    sed -e "/^#/d" -e "/^\$/d" -e "s,.*,    $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  3785.     < $srcdir/po/POTFILES.in > po/POTFILES
  3786.   
  3787.  
  3788.  
  3789. ##############################################################################
  3790. ################ Find a home for language map ################################
  3791. ##############################################################################
  3792.  
  3793. if test "x$prefix" != xNONE; then
  3794.     datadir=$prefix/share
  3795. else
  3796.     datadir=$ac_default_prefix/share
  3797. fi
  3798. LANGUAGE_MAP_FILE=$datadir/id-lang.map
  3799. cat >> confdefs.h <<EOF
  3800. #define LANGUAGE_MAP_FILE "$LANGUAGE_MAP_FILE"
  3801. EOF
  3802.  
  3803.  
  3804.  
  3805. ##############################################################################
  3806. ################ Find a home for Emacs Lisp code #############################
  3807. ##############################################################################
  3808.  
  3809. # Extract the first word of "emacs", so it can be a program name with args.
  3810. set dummy emacs; ac_word=$2
  3811. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3812. if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
  3813.   echo $ac_n "(cached) $ac_c" 1>&6
  3814. else
  3815.   case "$EMACS" in
  3816.   /*)
  3817.   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
  3818.   ;;
  3819.   *)
  3820.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  3821.   for ac_dir in $PATH; do
  3822.     test -z "$ac_dir" && ac_dir=.
  3823.     if test -f $ac_dir/$ac_word; then
  3824.       ac_cv_path_EMACS="$ac_dir/$ac_word"
  3825.       break
  3826.     fi
  3827.   done
  3828.   IFS="$ac_save_ifs"
  3829.   test -z "$ac_cv_path_EMACS" && ac_cv_path_EMACS="no"
  3830.   ;;
  3831. esac
  3832. fi
  3833. EMACS="$ac_cv_path_EMACS"
  3834. if test -n "$EMACS"; then
  3835.   echo "$ac_t""$EMACS" 1>&6
  3836. else
  3837.   echo "$ac_t""no" 1>&6
  3838. fi
  3839.  
  3840.   if test $EMACS != "no"; then
  3841.     echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
  3842.         LISPDIR="\$(datadir)/emacs/site-lisp"
  3843.     if test "x$prefix" = "xNONE"; then
  3844.       if test -d $ac_default_prefix/share/emacs/site-lisp; then
  3845.     LISPDIR="\$(prefix)/share/emacs/site-lisp"
  3846.       else
  3847.     if test -d $ac_default_prefix/lib/emacs/site-lisp; then
  3848.       LISPDIR="\$(prefix)/lib/emacs/site-lisp"
  3849.     fi
  3850.       fi
  3851.     else
  3852.       if test -d $prefix/share/emacs/site-lisp; then
  3853.     LISPDIR="\$(prefix)/share/emacs/site-lisp"
  3854.       else
  3855.     if test -d $prefix/lib/emacs/site-lisp; then
  3856.       LISPDIR="\$(prefix)/lib/emacs/site-lisp"
  3857.     fi
  3858.       fi
  3859.     fi
  3860.     echo "$ac_t""$LISPDIR" 1>&6
  3861.     ELCFILES="\$(ELCFILES)"
  3862.   fi
  3863.   
  3864.   
  3865.  
  3866. ##############################################################################
  3867. ################ Generate the configure script ###############################
  3868. ##############################################################################
  3869.  
  3870. trap '' 1 2 15
  3871. cat > confcache <<\EOF
  3872. # This file is a shell script that caches the results of configure
  3873. # tests run on this system so they can be shared between configure
  3874. # scripts and configure runs.  It is not useful on other systems.
  3875. # If it contains results you don't want to keep, you may remove or edit it.
  3876. #
  3877. # By default, configure uses ./config.cache as the cache file,
  3878. # creating it if it does not exist already.  You can give configure
  3879. # the --cache-file=FILE option to use a different cache file; that is
  3880. # what configure does when it calls configure scripts in
  3881. # subdirectories, so they share the cache.
  3882. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3883. # config.status only pays attention to the cache file if you give it the
  3884. # --recheck option to rerun configure.
  3885. #
  3886. EOF
  3887. # Ultrix sh set writes to stderr and can't be redirected directly,
  3888. # and sets the high bit in the cache file unless we assign to the vars.
  3889. (set) 2>&1 |
  3890.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3891.   >> confcache
  3892. if cmp -s $cache_file confcache; then
  3893.   :
  3894. else
  3895.   if test -w $cache_file; then
  3896.     echo "updating cache $cache_file"
  3897.     cat confcache > $cache_file
  3898.   else
  3899.     echo "not updating unwritable cache $cache_file"
  3900.   fi
  3901. fi
  3902. rm -f confcache
  3903.  
  3904. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3905.  
  3906. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3907. # Let make expand exec_prefix.
  3908. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3909.  
  3910. # Any assignment to VPATH causes Sun make to only execute
  3911. # the first set of double-colon rules, so remove it if not needed.
  3912. # If there is a colon in the path, we need to keep it.
  3913. if test "x$srcdir" = x.; then
  3914.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3915. fi
  3916.  
  3917. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3918.  
  3919. DEFS=-DHAVE_CONFIG_H
  3920.  
  3921. # Without the "./", some shells look in PATH for config.status.
  3922. : ${CONFIG_STATUS=./config.status}
  3923.  
  3924. echo creating $CONFIG_STATUS
  3925. rm -f $CONFIG_STATUS
  3926. cat > $CONFIG_STATUS <<EOF
  3927. #! /bin/sh
  3928. # Generated automatically by configure.
  3929. # Run this file to recreate the current configuration.
  3930. # This directory was configured as follows,
  3931. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3932. #
  3933. # $0 $ac_configure_args
  3934. #
  3935. # Compiler output produced by configure, useful for debugging
  3936. # configure, is in ./config.log if it exists.
  3937.  
  3938. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3939. for ac_option
  3940. do
  3941.   case "\$ac_option" in
  3942.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3943.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3944.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3945.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3946.     echo "$CONFIG_STATUS generated by autoconf version 2.10"
  3947.     exit 0 ;;
  3948.   -help | --help | --hel | --he | --h)
  3949.     echo "\$ac_cs_usage"; exit 0 ;;
  3950.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3951.   esac
  3952. done
  3953.  
  3954. ac_given_srcdir=$srcdir
  3955. ac_given_INSTALL="$INSTALL"
  3956.  
  3957. trap 'rm -fr `echo "Makefile doc/Makefile lib/Makefile libidu/Makefile src/Makefile lisp/Makefile intl/Makefile po/Makefile.in testsuite/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3958. EOF
  3959. cat >> $CONFIG_STATUS <<EOF
  3960.  
  3961. # Protect against being on the right side of a sed subst in config.status.
  3962. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3963.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3964. $ac_vpsub
  3965. $extrasub
  3966. s%@CFLAGS@%$CFLAGS%g
  3967. s%@CPPFLAGS@%$CPPFLAGS%g
  3968. s%@CXXFLAGS@%$CXXFLAGS%g
  3969. s%@DEFS@%$DEFS%g
  3970. s%@LDFLAGS@%$LDFLAGS%g
  3971. s%@LIBS@%$LIBS%g
  3972. s%@exec_prefix@%$exec_prefix%g
  3973. s%@prefix@%$prefix%g
  3974. s%@program_transform_name@%$program_transform_name%g
  3975. s%@bindir@%$bindir%g
  3976. s%@sbindir@%$sbindir%g
  3977. s%@libexecdir@%$libexecdir%g
  3978. s%@datadir@%$datadir%g
  3979. s%@sysconfdir@%$sysconfdir%g
  3980. s%@sharedstatedir@%$sharedstatedir%g
  3981. s%@localstatedir@%$localstatedir%g
  3982. s%@libdir@%$libdir%g
  3983. s%@includedir@%$includedir%g
  3984. s%@oldincludedir@%$oldincludedir%g
  3985. s%@infodir@%$infodir%g
  3986. s%@mandir@%$mandir%g
  3987. s%@PACKAGE@%$PACKAGE%g
  3988. s%@VERSION@%$VERSION%g
  3989. s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
  3990. s%@MAINT@%$MAINT%g
  3991. s%@README_ALPHA@%$README_ALPHA%g
  3992. s%@CC@%$CC%g
  3993. s%@LN_S@%$LN_S%g
  3994. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3995. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3996. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  3997. s%@SET_MAKE@%$SET_MAKE%g
  3998. s%@CPP@%$CPP%g
  3999. s%@RANLIB@%$RANLIB%g
  4000. s%@U@%$U%g
  4001. s%@ANSI2KNR@%$ANSI2KNR%g
  4002. s%@ALLOCA@%$ALLOCA%g
  4003. s%@REGEXOBJ@%$REGEXOBJ%g
  4004. s%@LIBOBJS@%$LIBOBJS%g
  4005. s%@USE_NLS@%$USE_NLS%g
  4006. s%@MSGFMT@%$MSGFMT%g
  4007. s%@GMSGFMT@%$GMSGFMT%g
  4008. s%@XGETTEXT@%$XGETTEXT%g
  4009. s%@GENCAT@%$GENCAT%g
  4010. s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
  4011. s%@CATALOGS@%$CATALOGS%g
  4012. s%@CATOBJEXT@%$CATOBJEXT%g
  4013. s%@DATADIRNAME@%$DATADIRNAME%g
  4014. s%@GMOFILES@%$GMOFILES%g
  4015. s%@INSTOBJEXT@%$INSTOBJEXT%g
  4016. s%@INTLDEPS@%$INTLDEPS%g
  4017. s%@INTLLIBS@%$INTLLIBS%g
  4018. s%@INTLOBJS@%$INTLOBJS%g
  4019. s%@POFILES@%$POFILES%g
  4020. s%@POSUB@%$POSUB%g
  4021. s%@GT_NO@%$GT_NO%g
  4022. s%@GT_YES@%$GT_YES%g
  4023. s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
  4024. s%@LANGUAGE_MAP_FILE@%$LANGUAGE_MAP_FILE%g
  4025. s%@EMACS@%$EMACS%g
  4026. s%@LISPDIR@%$LISPDIR%g
  4027. s%@ELCFILES@%$ELCFILES%g
  4028.  
  4029. CEOF
  4030. EOF
  4031. cat >> $CONFIG_STATUS <<EOF
  4032.  
  4033. CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile lib/Makefile libidu/Makefile src/Makefile lisp/Makefile intl/Makefile po/Makefile.in testsuite/Makefile"}
  4034. EOF
  4035. cat >> $CONFIG_STATUS <<\EOF
  4036. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  4037.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  4038.   case "$ac_file" in
  4039.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4040.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4041.   *) ac_file_in="${ac_file}.in" ;;
  4042.   esac
  4043.  
  4044.   # Adjust relative srcdir, etc. for subdirectories.
  4045.  
  4046.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4047.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4048.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4049.     # The file is in a subdirectory.
  4050.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  4051.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  4052.     # A "../" for each directory in $ac_dir_suffix.
  4053.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  4054.   else
  4055.     ac_dir_suffix= ac_dots=
  4056.   fi
  4057.  
  4058.   case "$ac_given_srcdir" in
  4059.   .)  srcdir=.
  4060.       if test -z "$ac_dots"; then top_srcdir=.
  4061.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  4062.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  4063.   *) # Relative path.
  4064.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  4065.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  4066.   esac
  4067.  
  4068.   case "$ac_given_INSTALL" in
  4069.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  4070.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  4071.   esac
  4072.   echo creating "$ac_file"
  4073.   rm -f "$ac_file"
  4074.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  4075.   case "$ac_file" in
  4076.   *Makefile*) ac_comsub="1i\\
  4077. # $configure_input" ;;
  4078.   *) ac_comsub= ;;
  4079.   esac
  4080.   sed -e "$ac_comsub
  4081. s%@configure_input@%$configure_input%g
  4082. s%@srcdir@%$srcdir%g
  4083. s%@top_srcdir@%$top_srcdir%g
  4084. s%@INSTALL@%$INSTALL%g
  4085. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  4086. fi; done
  4087. rm -f conftest.subs
  4088.  
  4089. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4090. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4091. #
  4092. # ac_d sets the value in "#define NAME VALUE" lines.
  4093. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  4094. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  4095. ac_dC='\3'
  4096. ac_dD='%g'
  4097. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  4098. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4099. ac_uB='\([     ]\)%\1#\2define\3'
  4100. ac_uC=' '
  4101. ac_uD='\4%g'
  4102. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4103. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  4104. ac_eB='$%\1#\2define\3'
  4105. ac_eC=' '
  4106. ac_eD='%g'
  4107.  
  4108. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  4109. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  4110.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  4111.   case "$ac_file" in
  4112.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  4113.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  4114.   *) ac_file_in="${ac_file}.in" ;;
  4115.   esac
  4116.  
  4117.   echo creating $ac_file
  4118.  
  4119.   rm -f conftest.frag conftest.in conftest.out
  4120.   cp $ac_given_srcdir/$ac_file_in conftest.in
  4121.  
  4122. EOF
  4123.  
  4124. # Transform confdefs.h into a sed script conftest.vals that substitutes
  4125. # the proper values into config.h.in to produce config.h.  And first:
  4126. # Protect against being on the right side of a sed subst in config.status.
  4127. # Protect against being in an unquoted here document in config.status.
  4128. rm -f conftest.vals
  4129. cat > conftest.hdr <<\EOF
  4130. s/[\\&%]/\\&/g
  4131. s%[\\$`]%\\&%g
  4132. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  4133. s%ac_d%ac_u%gp
  4134. s%ac_u%ac_e%gp
  4135. EOF
  4136. sed -n -f conftest.hdr confdefs.h > conftest.vals
  4137. rm -f conftest.hdr
  4138.  
  4139. # This sed command replaces #undef with comments.  This is necessary, for
  4140. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4141. # on some systems where configure will not decide to define it.
  4142. cat >> conftest.vals <<\EOF
  4143. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  4144. EOF
  4145.  
  4146. # Break up conftest.vals because some shells have a limit on
  4147. # the size of here documents, and old seds have small limits too.
  4148. # Maximum number of lines to put in a single here document.
  4149. ac_max_here_lines=12
  4150.  
  4151. rm -f conftest.tail
  4152. while :
  4153. do
  4154.   ac_lines=`grep -c . conftest.vals`
  4155.   # grep -c gives empty output for an empty file on some AIX systems.
  4156.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  4157.   # Write a limited-size here document to conftest.frag.
  4158.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4159.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4160.   echo 'CEOF
  4161.   sed -f conftest.frag conftest.in > conftest.out
  4162.   rm -f conftest.in
  4163.   mv conftest.out conftest.in
  4164. ' >> $CONFIG_STATUS
  4165.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4166.   rm -f conftest.vals
  4167.   mv conftest.tail conftest.vals
  4168. done
  4169. rm -f conftest.vals
  4170.  
  4171. cat >> $CONFIG_STATUS <<\EOF
  4172.   rm -f conftest.frag conftest.h
  4173.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4174.   cat conftest.in >> conftest.h
  4175.   rm -f conftest.in
  4176.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4177.     echo "$ac_file is unchanged"
  4178.     rm -f conftest.h
  4179.   else
  4180.     # Remove last slash and all that follows it.  Not all systems have dirname.
  4181.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  4182.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  4183.       # The file is in a subdirectory.
  4184.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  4185.     fi
  4186.     rm -f $ac_file
  4187.     mv conftest.h $ac_file
  4188.   fi
  4189. fi; done
  4190.  
  4191. EOF
  4192.  
  4193. cat >> $CONFIG_STATUS <<EOF
  4194. ac_sources="$nls_cv_header_libgt"
  4195. ac_dests="$nls_cv_header_intl"
  4196. EOF
  4197.  
  4198. cat >> $CONFIG_STATUS <<\EOF
  4199. srcdir=$ac_given_srcdir
  4200. while test -n "$ac_sources"; do
  4201.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  4202.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  4203.  
  4204.   echo "linking $srcdir/$ac_source to $ac_dest"
  4205.  
  4206.   if test ! -r $srcdir/$ac_source; then
  4207.     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  4208.   fi
  4209.   rm -f $ac_dest
  4210.  
  4211.   # Make relative symlinks.
  4212.   # Remove last slash and all that follows it.  Not all systems have dirname.
  4213.   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  4214.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  4215.     # The dest file is in a subdirectory.
  4216.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  4217.     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
  4218.     # A "../" for each directory in $ac_dest_dir_suffix.
  4219.     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  4220.   else
  4221.     ac_dest_dir_suffix= ac_dots=
  4222.   fi
  4223.  
  4224.   case "$srcdir" in
  4225.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  4226.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  4227.   esac
  4228.  
  4229.   # Make a symlink if possible; otherwise try a hard link.
  4230.   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
  4231.     ln $srcdir/$ac_source $ac_dest; then :
  4232.   else
  4233.     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  4234.   fi
  4235. done
  4236.  
  4237. sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; \
  4238.      test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h
  4239. exit 0
  4240. EOF
  4241. chmod +x $CONFIG_STATUS
  4242. rm -fr confdefs* $ac_clean_files
  4243. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4244.  
  4245.  
  4246. ##############################################################################
  4247. ################ Done ########################################################
  4248. ##############################################################################
  4249.